/* PB Prediction Market — compact inline article poll v0.3 */
.pb-pm-card,
.pb-pm-card *,
.pb-pm-card *::before,
.pb-pm-card *::after {
    box-sizing: border-box;
}

.pb-pm-card.pb-pm-card--compact {
    width: 100%;
    max-width: 720px;
    margin: 1.25em auto;
    padding: 18px 20px 0;
    overflow: hidden;
    color: #172033;
    background: #fff;
    border: 1px solid #e1e6ed;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .045);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.55;
}

.pb-pm-card--compact [hidden] {
    display: none !important;
}

.pb-pm-card--compact .pb-pm-card__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}

.pb-pm-card--compact .pb-pm-card__identity {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.pb-pm-card--compact .pb-pm-card__thumbnail {
    display: block;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    overflow: hidden;
    background: #fff3eb;
    border: 1px solid #edf0f4;
    border-radius: 10px;
}

.pb-pm-card--compact .pb-pm-card__thumbnail-image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

.pb-pm-card--compact .pb-pm-card__title {
    min-width: 0;
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
}

.pb-pm-card--compact .pb-pm-card__status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.pb-pm-card--compact .pb-pm-card__status--active {
    color: #15803d;
    background: #eaf8ef;
}

.pb-pm-card--compact .pb-pm-card__status--closing {
    color: #b45309;
    background: #fff7df;
}

.pb-pm-card--compact .pb-pm-card__status--closed,
.pb-pm-card--compact .pb-pm-card__status--settled {
    color: #64748b;
    background: #f1f5f9;
}

.pb-pm-card--compact .pb-pm-inline__form {
    display: block;
    margin: 0;
}

.pb-pm-card--compact .pb-pm-inline__choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.pb-pm-card--compact .pb-pm-inline__choice {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 9px 10px;
    color: #273449;
    background: #f8fafc;
    background: color-mix(in srgb, var(--pb-pm-choice-color, #64748b) 8%, #fff);
    border: 1px solid #dbe2ea;
    border-color: color-mix(in srgb, var(--pb-pm-choice-color, #64748b) 24%, #dbe2ea);
    border-radius: 9px;
    box-shadow: none;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: transform .14s ease, border-color .14s ease, filter .14s ease;
}

.pb-pm-card--compact .pb-pm-inline__choice:hover {
    border-color: var(--pb-pm-choice-color, #64748b);
    filter: saturate(1.08);
}

.pb-pm-card--compact .pb-pm-inline__choice:active {
    transform: scale(.985);
}

.pb-pm-card--compact .pb-pm-inline__choice:focus-visible,
.pb-pm-card--compact .pb-pm-inline__details > summary:focus-visible {
    outline: 3px solid rgba(255, 102, 0, .22);
    outline-offset: 2px;
}

.pb-pm-card--compact .pb-pm-inline__choice:disabled {
    cursor: wait;
    opacity: .55;
}

.pb-pm-card--compact .pb-pm-inline__choice.is-loading {
    border-color: #ff7a26;
    opacity: 1;
}

.pb-pm-card--compact .pb-pm-inline__choice-dot {
    display: block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    background: var(--pb-pm-choice-color, #64748b);
    border-radius: 50%;
}

.pb-pm-card--compact .pb-pm-inline__choice-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pb-pm-card--compact .pb-pm-inline__message {
    min-height: 0;
    margin: 7px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.pb-pm-card--compact .pb-pm-inline__message:empty {
    display: none;
}

.pb-pm-card--compact .pb-pm-inline__message.is-error {
    color: #b91c1c;
}

.pb-pm-card--compact .pb-pm-inline__my-result {
    margin: 0;
    padding: 11px 12px;
    background: #fff8f3;
    border: 1px solid #fed7bd;
    border-radius: 10px;
}

.pb-pm-card--compact .pb-pm-inline__my-result-label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 7px;
}

.pb-pm-card--compact .pb-pm-inline__my-result-label span {
    color: #9a5a34;
    font-size: 10px;
    font-weight: 700;
}

.pb-pm-card--compact .pb-pm-inline__my-result-label strong {
    min-width: 0;
    overflow: hidden;
    color: #7c2d12;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pb-pm-card--compact .pb-pm-inline__my-result-label b {
    color: #7c2d12;
    font-size: 15px;
    font-weight: 700;
}

.pb-pm-card--compact .pb-pm-inline__my-result-track {
    width: 100%;
    height: 6px;
    overflow: hidden;
    background: #f3e8df;
    border-radius: 999px;
}

.pb-pm-card--compact .pb-pm-inline__my-result-track span {
    display: block;
    width: 0;
    height: 100%;
    background: #ff6600;
    border-radius: 999px;
    transition: width .35s ease;
}

.pb-pm-card--compact .pb-pm-inline__details {
    margin: 15px -20px 0;
    border-top: 1px solid #e9edf2;
}

.pb-pm-card--compact .pb-pm-inline__details > summary {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 47px;
    margin: 0;
    padding: 11px 20px;
    color: #718096;
    background: #fff;
    border: 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.pb-pm-card--compact .pb-pm-inline__details > summary::-webkit-details-marker {
    display: none;
}

.pb-pm-card--compact .pb-pm-inline__summary-meta,
.pb-pm-card--compact .pb-pm-inline__summary-action {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    font-size: 11px;
    line-height: 1.3;
}

.pb-pm-card--compact .pb-pm-inline__summary-meta {
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
}

.pb-pm-card--compact .pb-pm-inline__summary-meta i {
    color: #cbd5e1;
    font-style: normal;
}

.pb-pm-card--compact .pb-pm-inline__summary-action {
    flex: 0 0 auto;
    gap: 7px;
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
}

.pb-pm-card--compact .pb-pm-inline__chevron {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}

.pb-pm-card--compact .pb-pm-inline__details[open] .pb-pm-inline__chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}

.pb-pm-card--compact .pb-pm-inline__details[open] > summary {
    background: #fbfcfe;
}

.pb-pm-card--compact .pb-pm-inline__details-body {
    padding: 17px 20px 20px;
    background: #fbfcfe;
    border-top: 1px solid #edf1f5;
    animation: pb-pm-details-in .18s ease-out both;
}

@keyframes pb-pm-details-in {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

.pb-pm-card--compact .pb-pm-inline__results,
.pb-pm-card--compact .pb-pm-inline__history {
    display: block;
    margin: 0;
}

.pb-pm-card--compact .pb-pm-inline__history {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #e5eaf0;
}

.pb-pm-card--compact .pb-pm-inline__section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 11px;
}

.pb-pm-card--compact .pb-pm-inline__section-head strong {
    color: #263246;
    font-size: 12px;
    font-weight: 700;
}

.pb-pm-card--compact .pb-pm-inline__section-head span {
    color: #94a3b8;
    font-size: 10px;
}

.pb-pm-card--compact .pb-pm-inline__results-list {
    display: grid;
    gap: 10px;
}

.pb-pm-card--compact .pb-pm-inline__result {
    display: block;
    margin: 0;
}

.pb-pm-card--compact .pb-pm-inline__result.is-my-choice,
.pb-pm-card--compact .pb-pm-inline__result.is-winner {
    padding: 8px;
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 8px;
}

.pb-pm-card--compact .pb-pm-inline__result-label {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
    color: #3a4658;
    font-size: 11px;
    line-height: 1.4;
}

.pb-pm-card--compact .pb-pm-inline__result-label span {
    min-width: 0;
}

.pb-pm-card--compact .pb-pm-inline__result-label strong {
    flex: 0 0 auto;
    color: #172033;
    font-weight: 700;
}

.pb-pm-card--compact .pb-pm-inline__result-track {
    width: 100%;
    height: 6px;
    overflow: hidden;
    background: #e8edf3;
    border-radius: 999px;
}

.pb-pm-card--compact .pb-pm-inline__result-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width .35s ease;
}

.pb-pm-card--compact .pb-pm-inline__result small {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 9px;
    line-height: 1.4;
    text-align: right;
}

.pb-pm-card--compact .pb-pm-inline__chart {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.pb-pm-card--compact .pb-pm-inline__chart svg {
    display: block;
    width: 100%;
    min-width: 430px;
    height: auto;
}

.pb-pm-card--compact .pb-pm-inline__grid-line {
    stroke: #e4e9ef;
    stroke-width: 1;
}

.pb-pm-card--compact .pb-pm-inline__axis-label {
    fill: #94a3b8;
    font-size: 10px;
}

.pb-pm-card--compact .pb-pm-inline__chart-line {
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.pb-pm-card--compact .pb-pm-inline__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 8px;
}

.pb-pm-card--compact .pb-pm-inline__legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 9px;
}

.pb-pm-card--compact .pb-pm-inline__legend i {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.pb-pm-card--compact .pb-pm-inline__empty {
    margin: 0;
    padding: 16px 12px;
    color: #64748b;
    background: #f3f6f9;
    border-radius: 8px;
    font-size: 11px;
    text-align: center;
}

.pb-pm-card--compact .pb-pm-inline__verdict {
    margin-top: 18px;
    padding: 11px 12px;
    color: #166534;
    background: #eefbf2;
    border: 1px solid #c5efd2;
    border-radius: 9px;
    font-size: 11px;
}

.pb-pm-card--compact .pb-pm-inline__verdict > * {
    display: block;
    margin: 0;
}

@media (max-width: 600px) {
    .pb-pm-card.pb-pm-card--compact {
        margin: 1em 0;
        padding: 14px 14px 0;
        border-radius: 13px;
        box-shadow: none;
    }

    .pb-pm-card--compact .pb-pm-card__title-row {
        gap: 9px;
        margin-bottom: 12px;
    }

    .pb-pm-card--compact .pb-pm-card__identity {
        gap: 9px;
    }

    .pb-pm-card--compact .pb-pm-card__thumbnail {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 9px;
    }

    .pb-pm-card--compact .pb-pm-card__title {
        font-size: 14px;
        line-height: 1.45;
    }

    .pb-pm-card--compact .pb-pm-card__status {
        min-height: 22px;
        padding: 3px 8px;
        font-size: 9px;
    }

    .pb-pm-card--compact .pb-pm-inline__choices {
        gap: 7px;
    }

    .pb-pm-card--compact .pb-pm-inline__choice {
        min-height: 44px;
        padding: 8px 7px;
        font-size: 12px;
    }

    .pb-pm-card--compact .pb-pm-inline__details {
        margin: 13px -14px 0;
    }

    .pb-pm-card--compact .pb-pm-inline__details > summary {
        min-height: 44px;
        padding: 10px 14px;
    }

    .pb-pm-card--compact .pb-pm-inline__summary-meta,
    .pb-pm-card--compact .pb-pm-inline__summary-action {
        font-size: 10px;
    }

    .pb-pm-card--compact .pb-pm-inline__details-body {
        padding: 15px 14px 17px;
    }
}

@media (max-width: 350px) {
    .pb-pm-card--compact .pb-pm-inline__choice {
        font-size: 10px;
    }

    .pb-pm-card--compact .pb-pm-inline__summary-meta i,
    .pb-pm-card--compact .pb-pm-inline__summary-meta span:last-child {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pb-pm-card--compact *,
    .pb-pm-card--compact *::before,
    .pb-pm-card--compact *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
