/* Options tab + Stocks → Options tape. Tokens only. */

.opt-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

#opt-tape-kind {
    margin: 0 0 20px;
}

.opt-hdr .section-title {
    margin-bottom: 0;
}

.opt-updated {
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.opt-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 20px;
}

#section-options .opt-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#tab-options .opt-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.opt-stat {
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.opt-stat-k {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.opt-stat-v {
    font-size: 20px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary);
}

.opt-stat-v.up { color: var(--gain); }
.opt-stat-v.down { color: var(--loss); }

.opt-block {
    margin-top: 28px;
}

.opt-block .section-title,
.opt-h {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.opt-block > .opt-hdr {
    margin-bottom: 10px;
}

.opt-block > .opt-hdr .opt-h {
    margin: 0;
}

.opt-hdr-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.opt-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.opt-grid2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    min-width: 0;
    max-width: 100%;
}

.opt-grid2 > * {
    min-width: 0;
    max-width: 100%;
}

.opt-scroll {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.opt-table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.opt-table th,
.opt-table td {
    padding: 7px 8px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.opt-table th {
    text-align: left;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 11px;
}

.opt-table th.num,
.opt-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.opt-table th.opt-rule,
.opt-table td.opt-rule {
    max-width: 4.75rem;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.opt-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0 16px;
}

.opt-hero-card {
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.opt-hero-k {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.opt-hero-contract {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.opt-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.opt-desk {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 10px 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    margin-bottom: 16px;
}

.opt-pill-on {
    color: var(--text-primary);
    border-color: var(--text-muted);
}

.opt-chart-sm {
    height: 160px;
    margin-top: 16px;
}

.opt-table tr.opt-atm td {
    background: var(--surface-2, var(--surface));
}

.opt-table tr.opt-hot td {
    background: color-mix(in srgb, var(--accent-primary) 10%, transparent);
}

.opt-table tr.opt-call td {
    background: color-mix(in srgb, var(--gain) 10%, transparent);
}

.opt-table tr.opt-put td {
    background: color-mix(in srgb, var(--loss) 10%, transparent);
}

.opt-table tr.opt-lottery td {
    background: color-mix(in srgb, #b8860b 12%, transparent);
}

.opt-table tr.opt-twoway td {
    background: color-mix(in srgb, var(--accent-primary) 8%, transparent);
}

.opt-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
    color: inherit;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
}

.opt-name:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.opt-name .mover-logo-wrap,
.opt-name .mover-logo-wrap--sm,
.opt-logo {
    flex-shrink: 0;
    width: 20px !important;
    height: 20px !important;
}

.opt-name .mover-logo-img,
.opt-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.opt-pill {
    display: inline-block;
    font-size: 10px;
    line-height: 1.4;
    padding: 1px 6px;
    margin-right: 4px;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.opt-chip--go {
    color: var(--text-primary);
}

.opt-empty {
    padding: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.opt-chart {
    height: 200px;
    position: relative;
}

.opt-impact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.opt-chip {
    font-size: 12px;
    padding: 3px 8px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
}

.opt-chip:hover { color: var(--text-primary); }

#options-content,
#section-options,
#section-options-body {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 900px) {
    .opt-stats,
    #section-options .opt-stats,
    #tab-options .opt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .opt-grid2,
    .opt-hero { grid-template-columns: minmax(0, 1fr); }
}
