/* Una sola tonalidad: solo pasos de --foreground sobre el blanco hueso. Sin bordes. */
* { box-sizing: border-box; }
body { margin: 0; background: hsl(var(--background)); color: hsl(var(--foreground)); font-family: var(--font-sans); }
a { color: hsl(var(--foreground)); text-underline-offset: 2px; }
.muted { color: hsl(var(--muted-foreground)); }
.small { font-size: .8rem; line-height: 1.4; }
h1 { font-size: 1.15rem; margin: 0; font-weight: 600; }
h2 { font-size: .85rem; margin: 0 0 .6rem; font-weight: 600; letter-spacing: .02em; }
.top { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; }
.controls { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.controls label { display: flex; gap: .4rem; align-items: center; font-size: .8rem; color: hsl(var(--muted-foreground)); }
select { background: hsl(var(--surface)); color: hsl(var(--foreground)); border: 0; border-radius: var(--radius); padding: .45rem .7rem; font: inherit; }
select:focus-visible, button:focus-visible { outline: 2px solid hsl(var(--ring)); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 1rem; padding: 0 1.25rem 1rem; }
@media (max-width: 62rem) { .layout { grid-template-columns: 1fr; } }
.chart-card { position: relative; background: hsl(var(--surface)); border-radius: var(--radius); height: min(70vh, 40rem); min-height: 22rem; overflow: hidden; display: flex; flex-direction: column; }
.chart-main { position: relative; flex: 1 1 auto; min-height: 0; }
.chart { position: absolute; inset: 0; }
.overlay { position: absolute; inset: 0; pointer-events: none; width: 100%; height: 100%; }
/* Panel de flujo de volumen: CVD (línea) y delta (histograma), escala de tiempo
   sincronizada con el gráfico de velas. Un solo tono, sin rojo ni verde. */
.flow { flex: 0 0 auto; padding: .25rem .5rem .4rem; }
.cvd-pane { height: 7rem; }
.flow p { margin: .15rem 0 0; font-size: .72rem; }
.side { display: flex; flex-direction: column; gap: .75rem; }
.card { background: hsl(var(--surface)); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-sm); }
.findings { list-style: none; margin: .5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.findings li { background: hsl(var(--background)); border-radius: calc(var(--radius) - .25rem); padding: .6rem .7rem; cursor: pointer; }
.findings li:hover, .findings li.active { background: hsl(var(--surface-strong)); }
.findings .row { display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; font-weight: 600; }
.findings .expl { margin: .3rem 0 .4rem; font-size: .78rem; line-height: 1.4; color: hsl(var(--muted-foreground)); }
.meter { height: .3rem; border-radius: 1rem; background: hsl(var(--surface-strong)); overflow: hidden; }
.meter > i { display: block; height: 100%; background: hsl(var(--foreground)); }
.findings .meta { font-size: .7rem; color: hsl(var(--subtle-foreground)); margin-top: .3rem; }
.explain-cta { margin-top: .7rem; display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.explain-cta p { margin: 0; }
button { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border: 0; border-radius: var(--radius); padding: .45rem .8rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
button:hover { background: hsl(var(--foreground)); }
button[disabled] { opacity: .5; cursor: default; }
.explain { display: flex; flex-direction: column; gap: .6rem; }
.explain .sum { margin: 0; font-size: .82rem; line-height: 1.45; }
.explain ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.explain li { background: hsl(var(--background)); border-radius: calc(var(--radius) - .25rem); padding: .55rem .65rem; display: flex; flex-direction: column; gap: .2rem; }
.explain .name { font-size: .8rem; font-weight: 600; }
.explain .line { margin: 0; font-size: .74rem; line-height: 1.4; color: hsl(var(--muted-foreground)); }
.explain .line b { font-weight: 600; color: hsl(var(--foreground)); }
.explain .caution { margin: 0; font-size: .74rem; line-height: 1.4; color: hsl(var(--muted-foreground)); }
.explain[hidden] { display: none; }
#explain-card[hidden] { display: none; }
.kv { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .85rem; }
.kv li { display: flex; justify-content: space-between; }
.kv .v { font-weight: 600; }
.big { font-size: 2rem; font-weight: 600; margin: 0; }
.news { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.news li { display: flex; flex-direction: column; gap: .2rem; }
.news a { font-size: .85rem; font-weight: 600; }
.news .meta { font-size: .7rem; color: hsl(var(--subtle-foreground)); }
.foot { padding: .5rem 1.25rem 1.5rem; }

/* Pulso de mercado: hechos del libro, liquidaciones, miedo/codicia y tendencia.
   Diseño de un solo tono, blanco hueso y sin bordes. */
.pulse { display: flex; flex-direction: column; gap: .5rem; }
.pulse-header { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .4rem; }
.pulse-header h2 { margin: 0; }
.pulse-state { font-size: .72rem; color: hsl(var(--subtle-foreground)); }
.pulse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .5rem; }
.pulse-subcard { display: flex; flex-direction: column; gap: .25rem; min-width: 0; background: hsl(var(--background)); border-radius: calc(var(--radius) - .25rem); padding: .6rem .7rem; }
.pulse-subcard h3 { margin: 0 0 .2rem; font-size: .75rem; font-weight: 600; color: hsl(var(--muted-foreground)); letter-spacing: .02em; }
.pulse-subcard .big { font-size: 1.35rem; line-height: 1.2; font-weight: 600; margin: 0; font-variant-numeric: tabular-nums; }
.pulse-subcard .unit { font-size: .75rem; font-weight: 400; color: hsl(var(--subtle-foreground)); }
.pulse-subcard .note { margin: 0; font-size: .72rem; line-height: 1.4; color: hsl(var(--muted-foreground)); }
.pulse-subcard .empty { margin: 0; font-size: .75rem; color: hsl(var(--subtle-foreground)); }
.walls, .regime { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.walls li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .4rem; align-items: baseline; font-family: var(--font-mono); font-size: .72rem; }
.wall-price { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wall-usd, .wall-dist { color: hsl(var(--muted-foreground)); font-variant-numeric: tabular-nums; }
.walls li[data-side="bid"] .wall-price::before { content: "▼ "; color: hsl(var(--subtle-foreground)); }
.walls li[data-side="ask"] .wall-price::before { content: "▲ "; color: hsl(var(--subtle-foreground)); }
.regime li { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; }
.regime-tf { font-family: var(--font-mono); color: hsl(var(--muted-foreground)); }
.regime-label { font-weight: 600; }
