/* ATAS-only additions. Published palette, headers and responsive choices stay in panel_spx.css. */
#market-state { min-width: 0; padding: 8px; background: var(--panel); border: 1px solid var(--borde); overflow-wrap: anywhere; }
#market-state h2, #market-state h3, #market-state h4 { margin: 0 0 6px; color: #d4b0ff; font-size: 11px; }
#market-state h2 { letter-spacing: 1px; }
#market-state p { margin: 3px 0; }
#market-state pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: 6px 0; }
#market-state .market-note, #market-state .market-field { font-size: 10px; color: var(--tenue); white-space: pre-wrap; }
#market-state .market-instance { border-top: 1px solid var(--borde); padding-top: 8px; margin-top: 8px; font-size: 11px; }
#market-state .market-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 6px; margin: 8px 0; }
#market-state .market-tile { border: 1px solid #b07cf0; border-radius: 4px; padding: 6px; min-width: 0; }
#market-state summary { cursor: pointer; color: #d4b0ff; }
#market-state details pre { max-height: 240px; overflow: auto; }
.spx-panel {
  grid-template-columns: var(--track-vix, var(--ancho-vix, 380px)) var(--track-tpo, var(--ancho-tpo, 160px))
    var(--track-abs, var(--ancho-abs, 285px)) var(--track-netoi, var(--ancho-netoi, 200px))
    minmax(0, 1fr)
    var(--track-gex, var(--ancho-gex, 200px)) var(--track-atas, var(--ancho-atas, 210px));
}
#atas-box .atas-cab { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 18px 16px; gap: 4px 6px; align-content: center; padding: 4px 8px; }
#atas-box .titulo, .atas-card h3 { color: #d4b0ff; }
.atas-metrics { display: flex; gap: 3px; grid-column: 1 / -1; }
.atas-metrics button { padding: 0 5px; line-height: 16px; }
.atas-metrics button[aria-pressed="true"] { background: #3a2a55; color: #d4b0ff; border-color: #b07cf0; }
#hide-atas { font-size: 22px; line-height: 16px; padding: 0 4px; color: #d4b0ff; background: transparent; border-color: #b07cf0; }
.atas-empty { position: absolute; top: 58px; left: 8px; color: var(--tenue); font-size: 11px; pointer-events: none; }
.atas-hover { border-color: #b07cf0; background: #3a2a55; color: #d4b0ff; }
.atas-axis { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.atas-tag { position: absolute; right: 1px; transform: translateY(-50%); padding: 1px 3px; font: 10px system-ui; text-align: center;
  background: #b07cf0; color: #0f141b; border-radius: 3px; white-space: nowrap; pointer-events: auto; cursor: help; }
#atas-levels-switch[aria-checked="true"] .pista { background: #b07cf0; }
.atas-xray { padding: 10px 16px 14px; }
.atas-xray h2 { margin: 0 0 8px; font-size: 12px; letter-spacing: 1.5px; }
#atas-xray-time { color: var(--tenue); font-weight: normal; letter-spacing: normal; margin-left: 8px; }
.atas-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.atas-card { min-width: 0; background: var(--panel); border: 1px solid var(--borde); border-top: 3px solid #b07cf0; border-radius: 6px; padding: 8px 10px; font-size: 12px; overflow-wrap: anywhere; }
.atas-card h3 { margin: 0 0 6px; font-size: 11px; letter-spacing: 1px; }
.atas-card table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.atas-card th { text-align: left; font-weight: normal; color: var(--tenue); }
.atas-card td { text-align: right; }
.atas-card th, .atas-card td { padding: 2px 0; }
.atas-note, .atas-missing, .atas-card summary { color: var(--tenue); font-size: 11px; }
.atas-card summary { cursor: pointer; margin-top: 6px; }
.atas-detail { white-space: pre-wrap; font-size: 11px; max-height: 240px; overflow: auto; }
@media (max-width: 1100px) { .atas-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .atas-cards { grid-template-columns: 1fr; } }
/* Derived current-photo notes only; AVAILABLE is not a freshness/usable-green signal. */
#atas-xray .atas-quality { margin: 8px 0; padding: 6px 8px; border-left: 3px solid #b07cf0;
  background: #1e1929; color: #d4b0ff; font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere;
  max-height: 180px; overflow: auto; }
#atas-xray .atas-quality-partial, #atas-xray .atas-quality-unavailable { border-color: #e0b040; color: #f0d070; }
#atas-xray .atas-quality-missing, #atas-xray .atas-quality-unevaluable { border-color: var(--tenue); color: var(--tenue); }
/* D2: missing TRACE map alert, amber caution tokens from design/system.md. */
#mapa-avisos { display: inline-flex; flex-direction: column; gap: 2px; }
#mapa-avisos[hidden] { display: none; }
.aviso-mapa { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 4px; border: 1px solid #e0b040;
  background: #3a2a0c; color: #f0d070; white-space: nowrap; }
/* Current Positioning identity/context overlays do not change the shared 46px price origin. */
#atas-instance { position: absolute; top: 48px; left: 6px; max-width: calc(100% - 12px); z-index: 6; }
#atas-context { position: absolute; top: 72px; left: 6px; right: 6px; z-index: 6; margin: 0;
  max-height: 56px; overflow: auto; font-size: 10px; white-space: pre-wrap; overflow-wrap: anywhere;
  background: #0f141b; color: var(--tenue); }
#atas-empty { top: 134px; }
/* A3: ATAS header pills, expected move lines and key level zones (ATAS violets from design/system.md). */
#atas-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
#atas-pills[hidden] { display: none; }
.atas-pill { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 4px; border: 1px solid #b07cf0;
  background: #3a2a55; color: #d4b0ff; white-space: nowrap; cursor: help; }
.atas-em { position: absolute; left: 0; height: 0; border-top: 1px dashed #b07cf0; pointer-events: auto; cursor: help; }
.atas-em span { position: absolute; left: 4px; top: -14px; font: 10px system-ui; color: #d4b0ff; background: #0f141b; padding: 0 3px; }
.atas-zona { position: absolute; width: 4px; background: #b07cf0; opacity: .45; border-radius: 2px; pointer-events: auto; cursor: help; }
