﻿/* ===== Pre-Earnings Option Activity ===== */
.oa-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 8px 16px 40px;
}

.oa-head {
    margin: 12px 0 18px;
}

.oa-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.oa-title-icon {
    color: var(--ew-gold, #DDB785);
    flex: none;
}

.oa-sub {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    max-width: 780px;
    line-height: 1.45;
}

.oa-locked {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    background: var(--surface);
}

    .oa-locked p {
        color: var(--text-muted);
        margin: 0 0 14px;
    }

.oa-upgrade {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 8px;
    background: var(--ew-gold, #DDB785);
    color: #23324a;
    font-weight: 700;
    text-decoration: none;
}

/* ---- controls ---- */
.oa-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.oa-modes,
.oa-sorts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.oa-mode-btn {
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}

    .oa-mode-btn:hover {
        border-color: var(--ew-gold, #DDB785);
    }

    .oa-mode-btn.is-active {
        background: var(--ew-gold, #DDB785);
        border-color: var(--ew-gold, #DDB785);
        color: #23324a;
    }

.oa-modenote {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0 0 10px;
    max-width: 820px;
}

.oa-sort-btn {
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}

    .oa-sort-btn:hover {
        border-color: var(--ew-gold, #DDB785);
    }

    .oa-sort-btn.is-active {
        background: var(--ew-gold, #DDB785);
        border-color: var(--ew-gold, #DDB785);
        color: #23324a;
    }




.oa-count {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 10px;
}

/* ---- card grid (EW2023 three-up) ---- */
.oa-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.oa-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.oa-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 12px;
}

.oa-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex: none;
}

.oa-id {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.oa-ticker {
    font-family: "Arial Black", "Arial Bold", Gadget, sans-serif;
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}

    .oa-ticker:hover {
        color: var(--ew-gold, #DDB785);
    }

.oa-company {
    font-size: 12.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- four-cell stat strip ---- */
.oa-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.oa-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    padding: 8px 6px;
    min-width: 0;
    text-align: center;
}

    .oa-stat + .oa-stat {
        border-left: 1px solid var(--border);
    }

.oa-stat-lbl {
    font-size: 10.5px;
    color: var(--text-muted);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.oa-stat-sub {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

.oa-stat-big {
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.oa-last {
    font-size: 21px;
}

.oa-confirm.is-confirmed {
    color: var(--positive, #0F8A3B);
}

.oa-confirm.is-unconfirmed {
    color: #c99a2e;
}

.oa-stat-donut {
    gap: 3px;
}

/* call-share donut */
.oa-donut-track {
    stroke: var(--border);
    stroke-width: 7;
}

.oa-donut-arc {
    stroke-width: 7;
    stroke-linecap: butt;
}

    .oa-donut-arc.is-call {
        stroke: var(--positive, #0F8A3B);
    }

    .oa-donut-arc.is-put {
        stroke: var(--negative, #c62828);
    }

.oa-donut-val {
    fill: var(--text);
    font-size: 10px;
    font-weight: 800;
}

/* ---- volume across strikes ---- */
.oa-strikes {
    padding: 6px 8px 0;
}

.oa-strikes-svg {
    display: block;
    width: 100%;
    height: auto;
}

.oa-plotarea {
    fill: var(--surface-alt, #f6f7f9);
}

.oa-bub-call {
    fill: var(--positive, #0F8A3B);
    fill-opacity: 0.42;
}

.oa-bub-put {
    fill: var(--negative, #c62828);
    fill-opacity: 0.42;
}

.oa-spot {
    fill: var(--text);
}

.oa-axis {
    stroke: var(--border);
    stroke-width: 1;
}

.oa-axis-label {
    fill: var(--text-muted);
    font-size: 11px;
}

/* ---- expand ---- */
.oa-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 2px 12px 10px;
    margin-top: auto;
}

/* per-card side toggles */
.oa-legend {
    display: flex;
    gap: 6px;
}

.oa-leg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: transparent;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
}

    .oa-leg:hover {
        border-color: var(--ew-gold, #DDB785);
    }

.oa-leg-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border);
    flex: none;
}

.oa-leg.is-on {
    color: var(--text);
}

.oa-leg-call.is-on .oa-leg-dot {
    background: var(--positive, #0F8A3B);
}

.oa-leg-put.is-on .oa-leg-dot {
    background: var(--negative, #c62828);
}

/* switched off reads as struck through, not just dimmed */
.oa-leg:not(.is-on) {
    opacity: 0.55;
    text-decoration: line-through;
}

.oa-expand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
}

    .oa-expand:hover {
        border-color: var(--ew-gold, #DDB785);
        color: var(--text);
    }

.oa-expand-glyph {
    font-size: 17px;
    line-height: 1;
}

.oa-expand-label {
    letter-spacing: 0.02em;
}

/* ---- chain panel ---- */
.oa-panel {
    border-top: 1px solid var(--border);
    padding: 10px 14px 14px;
    background: var(--surface-alt, #f6f7f9);
}

.oa-chain-note {
    font-size: 11.5px;
    color: var(--text-muted);
    margin: 0 0 8px;
}

.oa-chain-scroll {
    max-height: 400px;
    overflow: auto;
}

.oa-chain {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

    .oa-chain th,
    .oa-chain td {
        padding: 4px 6px;
        text-align: center;
        white-space: nowrap;
    }

    .oa-chain thead th {
        position: sticky;
        top: 0;
        background: var(--surface);
        z-index: 1;
    }

.oa-ct-call {
    color: var(--positive, #0F8A3B);
    font-weight: 700;
}

.oa-ct-put {
    color: var(--negative, #c62828);
    font-weight: 700;
}

.oa-chain-cols th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.oa-chain tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--text) 4%, transparent);
}

.oa-chain tbody tr:hover {
    background: color-mix(in srgb, var(--ew-gold, #DDB785) 18%, transparent);
}

.oa-strike {
    font-weight: 800;
    color: var(--text);
}




/* ---- misc ---- */
.oa-disclaimer {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 18px 0 0;
    max-width: 820px;
}

.oa-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 44px 0;
    font-size: 14px;
}

.oa-loader {
    display: flex;
    justify-content: center;
    padding: 56px 0;
}

    .oa-loader.is-inline {
        padding: 22px 0;
    }

.oa-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid var(--border);
    border-top-color: var(--ew-gold, #DDB785);
    animation: oa-spin 0.8s linear infinite;
}

@keyframes oa-spin {
    to {
        transform: rotate(360deg);
    }
}

.oa-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---- responsive ---- */
@media (max-width: 900px) {
    .oa-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .oa-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .oa-stat:nth-child(3) {
        border-left: none;
    }

    .oa-stat:nth-child(n+3) {
        border-top: 1px solid var(--border);
    }
}

@media (prefers-reduced-motion: reduce) {
    .oa-expand svg {
        transition: none;
    }

    .oa-spinner {
        animation-duration: 2.4s;
    }
}
