/* 0DTE levels card (assets/js/odte-panel.js). Immutable: ?v=1. Own colour #b388ff, lighter weight than the main walls. */
#odte-panel-mount { margin: 0 0 2.5rem; }
#odte-panel-mount[hidden] { display: none !important; }
.odte-card {
    --odte: #b388ff;
    background: rgba(13, 15, 20, 0.95);
    border: 1px dashed rgba(179, 136, 255, 0.45);
    border-radius: 14px;
    padding: 1.25rem 1.4rem;
    color: #e2e8f0;
    font-family: 'Inter', 'Outfit', system-ui, sans-serif;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.odte-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.odte-title { font: 700 0.95rem 'Share Tech Mono', ui-monospace, monospace; letter-spacing: 0.04em; color: var(--odte); }
.odte-badge { font: 700 0.72rem 'Share Tech Mono', ui-monospace, monospace; padding: 3px 9px; border-radius: 6px; border: 1px solid rgba(179, 136, 255, 0.5); color: var(--odte); background: rgba(179, 136, 255, 0.1); }
.odte-badge.odte-st-thin, .odte-badge.odte-st-none { color: #f59e0b; border-color: rgba(245, 158, 11, 0.5); background: rgba(245, 158, 11, 0.1); }
/* Addendum 6: Current / Expired. Expired = amber badge and notice, tiles and profile bars dimmed (the set stays visible) */
.odte-badge.odte-st-expired { color: #f59e0b; border-color: rgba(245, 158, 11, 0.55); background: rgba(245, 158, 11, 0.12); }
.odte-notice { margin: 0 0 0.8rem; padding: 7px 11px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; color: #e9ddff; background: rgba(179, 136, 255, 0.1); border: 1px solid rgba(179, 136, 255, 0.4); }
.odte-notice.odte-notice-expired { color: #fbbf24; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.5); }
.odte-card-expired { border-color: rgba(245, 158, 11, 0.45); }
.odte-card-expired .odte-tile { opacity: 0.72; }
.odte-chart-note.is-expired { color: #fbbf24; background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.45); }
#ag-strike-profile.odte-profile-expired .agp-fill { opacity: 0.45; }
#ag-strike-profile.odte-profile-expired .agp-foot { color: #f59e0b; }
.odte-badge.odte-st-unavailable { color: #ef4444; border-color: rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.1); }
.odte-wording { margin: 0.35rem 0 0.75rem; font-size: 0.85rem; color: #cbd5e1; }
.odte-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.78rem; color: #8b97a8; margin-bottom: 0.9rem; }
.odte-meta strong { color: #e2e8f0; font-weight: 600; }
.odte-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.odte-tile.odte-flip { border-left-color: rgba(255, 215, 0, 0.55); }
.odte-flip-note { font-style: italic; }
.odte-tile { background: #0f141c; border: 1px solid rgba(148, 163, 184, 0.14); border-left: 3px solid rgba(179, 136, 255, 0.55); border-radius: 10px; padding: 0.7rem 0.8rem; min-width: 0; }
.odte-tile.odte-dropped { border-left-color: rgba(148, 163, 184, 0.35); }
.odte-k { font: 700 0.7rem 'Share Tech Mono', ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.05em; color: #8b97a8; }
.odte-v { font: 700 1.15rem 'Share Tech Mono', ui-monospace, monospace; color: #f1f5f9; margin-top: 2px; }
.odte-dropped .odte-v { color: #94a3b8; font-size: 1rem; }
.odte-oi { font-size: 0.8rem; color: var(--odte); font-weight: 600; }
.odte-s { font-size: 0.74rem; color: #8b97a8; margin-top: 3px; }
.odte-traded { display: inline-block; margin-top: 6px; font-size: 0.7rem; padding: 2px 6px; border-radius: 5px; }
.odte-traded.yes { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.odte-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.78rem; color: #8b97a8; margin-top: 0.85rem; }
.odte-facts strong { color: #e2e8f0; }
.odte-note, .odte-msg { font-size: 0.8rem; color: #94a3b8; margin: 0.7rem 0 0; }
.odte-msg { color: #cbd5e1; font-size: 0.88rem; }
.odte-scale { font-size: 0.76rem; color: #8b97a8; margin: 0.7rem 0 0; padding-top: 0.6rem; border-top: 1px solid rgba(148, 163, 184, 0.12); }
/* Mode switch above the chart: "Gamma levels" | "0DTE levels" (one set at a time) */
.odte-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.odte-mode-btn { appearance: none; cursor: pointer; padding: 12px 16px; border-radius: 10px; font: 700 0.95rem 'Inter', 'Outfit', system-ui, sans-serif; letter-spacing: 0.02em;
    color: #cbd5e1; background: #0f141c; border: 1px solid rgba(148, 163, 184, 0.25); transition: background 0.15s, border-color 0.15s, color 0.15s; }
.odte-mode-btn:hover { border-color: rgba(148, 163, 184, 0.5); color: #f1f5f9; }
.odte-mode-btn.active { color: #00f0ff; border-color: #00f0ff; background: rgba(0, 240, 255, 0.08); box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.25) inset; }
.odte-mode-btn-0dte.active { color: #b388ff; border-color: #b388ff; background: rgba(179, 136, 255, 0.1); box-shadow: 0 0 0 1px rgba(179, 136, 255, 0.3) inset; }
.odte-mode-btn:focus-visible { outline: 2px solid #ffd700; outline-offset: 2px; }
/* Share Tech Mono draws a slashed zero, so '0DTE' cannot be read as the letter O (Inter's zero is round) */
.odte-zero { font-family: 'Share Tech Mono', ui-monospace, monospace !important; }
.odte-chart-note { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; font-size: 0.82rem; color: #cbd5e1; background: rgba(179, 136, 255, 0.08); border: 1px dashed rgba(179, 136, 255, 0.4); }
.odte-chart-note.is-why { color: #f59e0b; background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.4); }
.odte-chart-note[hidden] { display: none !important; }
/* Addendum 3: scale line under the STRIKE PROFILE card while it shows the 0DTE series (below the footer: row alignment unchanged) */
.odte-profile-note { margin: 0; padding: 6px 2px 8px; font-size: 0.7rem; line-height: 1.35; color: #8b97a8; text-align: center; border-top: 1px dashed rgba(179, 136, 255, 0.3); }
/* 0DTE mode: main-level checkboxes and the main regime chip are out of view (the main lines are off) */
#dashboard-futures-chart-container.odte-mode .agc-levels,
#dashboard-futures-chart-container.odte-mode #agc-regime { display: none !important; }
@media (max-width: 1100px) { .odte-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .odte-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
    .odte-card { padding: 1rem; }
    .odte-grid { grid-template-columns: minmax(0, 1fr); }
    .odte-v { font-size: 1.05rem; }
}
