/* ── dashboard.css — Dashboard (owner B) ──
   Cut verbatim from styles.css (UI 7.0 step 0). Loaded after styles.css and
   before the signals-*.css / boards.css sheets (see the <link> order in index.html). */

/* ── Dashboard ─────────────────────────────────────────────────────── */
.hero { padding: 17px 18px 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.hero-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.hero-label { font-size: 11.5px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.hero-value { font-size: 42px; font-weight: 650; letter-spacing: -0.048em; line-height: 1.04; margin-top: 7px; font-variant-numeric: tabular-nums; }
.hero-value .paise { font-size: 22px; font-weight: 550; letter-spacing: -0.02em; opacity: .5; }
.hero-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.hero-meta b { display: block; font-size: 13px; font-weight: 650; color: var(--text); margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -0.012em; }
.hero-meta b.pos { color: var(--pos); } .hero-meta b.neg { color: var(--neg); }
.hero-meta .hero-note { display: block; margin-top: 2px; font-size: 11px; }
.hero-spark { flex: 1 1 250px; max-width: 430px; min-width: 190px; height: 90px; align-self: flex-end; }
.hero-strip { border-top: 1px solid var(--border); padding-top: 12px; }
.hero-strip-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 11.5px; color: var(--muted); margin-bottom: 8px; }
.hero-strip-head b { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.heat { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; height: 24px; }
.heat i { display: block; border-radius: 3px; background: var(--surface-3); cursor: pointer; transition: transform var(--dur) var(--spring), filter var(--dur); }
.heat i:hover, .heat i.sel { transform: scaleY(1.2); filter: brightness(1.12); }
.heat i.sel { box-shadow: 0 0 0 1.5px var(--accent); }
.heat i.today { outline: 1.5px solid var(--text-2); outline-offset: 1px; }

.meters { display: flex; flex-direction: column; gap: 14px; }
.meter .m-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 11.5px; margin-bottom: 6px; }
.meter .m-head span:first-child { color: var(--muted); }
.meter .m-val { font-weight: 600; font-variant-numeric: tabular-nums; }
.meter .m-val .faint { font-weight: 450; }

.pos-list { display: flex; flex-direction: column; }
.pos-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: center; padding: 9px var(--pad); border-top: 1px solid var(--border); cursor: pointer; transition: background var(--dur); }
.pos-row:hover { background: var(--surface-hover); }
.pos-row:active { background: var(--surface-3); }
.pos-row .l1 { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12.5px; }
.pos-row .l2 { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-row .r1 { text-align: right; font-size: 12.5px; }
.pos-row .r2 { text-align: right; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }

.lead-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 92px 54px 50px 88px; gap: 10px; align-items: center; padding: 8px var(--pad); border-top: 1px solid var(--border); font-size: 12px; cursor: pointer; transition: background var(--dur); }
.lead-row:hover { background: var(--surface-hover); }
.lead-row.head { cursor: default; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 7px; padding-bottom: 7px; background: var(--surface-2); }
.lead-row.head:hover { background: var(--surface-2); }
.lead-row .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lead-row .nm .strat { margin-right: 7px; }
.lead-row .num { font-variant-numeric: tabular-nums; }
.hbar-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 80px; gap: 10px; align-items: center; padding: 6px var(--pad); font-size: 12px; cursor: pointer; transition: background var(--dur); }
.hbar-row:hover { background: var(--surface-hover); }
.hbar-row:hover .sym { text-decoration: underline; text-underline-offset: 3px; }
.hbar-track { position: relative; height: 13px; }
.hbar-track::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--border-2); }
.hbar-track i { position: absolute; top: 2px; bottom: 2px; min-width: 2px; }
.hbar-track i.up { left: 50%; background: var(--pos); border-radius: 0 3px 3px 0; }
.hbar-track i.dn { right: 50%; background: var(--neg); border-radius: 3px 0 0 3px; }

/* ── Hero: today against a normal day ────────────────────────────────
   The band is the middle half of the last 20 sessions at the same point in
   the session; the dashed line is their median; the solid line is today,
   stopping at now. Drawn into a fixed viewBox and stretched by CSS, so a
   10s poll repaints without measuring anything. */
.pace { display: flex; flex-direction: column; height: 100%; gap: 6px; }
.pace svg { width: 100%; flex: 1 1 auto; min-height: 0; overflow: visible; }
.pace-band { fill: color-mix(in srgb, var(--text) 8%, transparent); stroke: none; }
.pace-median { fill: none; stroke: var(--muted); stroke-width: 1.25; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.pace-zero { stroke: var(--border-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pace-now { stroke: var(--border-2); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.pace-today { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pace-today.pos { stroke: var(--pos); } .pace-today.neg { stroke: var(--neg); }
.pace-dot { fill: var(--muted); stroke: var(--surface); stroke-width: 1.5; }
.pace-dot.pos { fill: var(--pos); } .pace-dot.neg { fill: var(--neg); }
.pace-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 10.5px; color: var(--muted); }
.pace-key { display: inline-flex; align-items: center; gap: 5px; }
.pace-key i { display: inline-block; width: 12px; height: 7px; border-radius: 2px; margin-left: 3px; }
.pace-key i.k-band { background: color-mix(in srgb, var(--text) 14%, transparent); }
.pace-key i.k-med { height: 0; border-top: 1.5px dashed var(--muted); border-radius: 0; width: 13px; }
.pace-verdict { white-space: nowrap; }
.pace-verdict b { font-weight: 650; font-variant-numeric: tabular-nums; margin-left: 3px; color: var(--text-2); }
.pace-verdict.pos b { color: var(--pos); } .pace-verdict.neg b { color: var(--neg); }
.pace-empty { justify-content: center; text-align: center; padding: 20px 8px; }

/* When the window has no closed trades, the curve / Strategies / Symbols
   blocks stand down and this takes their place — one line instead of three
   identical empty boxes down the page. */
#dashNothing { display: flex; }
.void { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 22px var(--pad); min-height: 150px; width: 100%; }
.void-body { min-width: 0; }
.void-t { font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em; }
.void-s { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.void-s b { color: var(--text-2); font-weight: 600; }
.void-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.void-t { font-size: 13.5px; }

@media (max-width: 640px) {
  .hero { padding: 16px; } .hero-value { font-size: 34px; } .hero-spark { max-width: none; flex-basis: 100%; }
  .lead-row { grid-template-columns: minmax(0, 1fr) 50px 80px; } .lead-row > :nth-child(2), .lead-row > :nth-child(3) { display: none; }
}
