/* Cella007FX PRO panel-market.css — panel v2 (11 Nov 2026): Market "NOW" card (#w-market + #w-countdown) and Session hours card (#w-sessions); classes mk2-* / ss2-*. Tokens only; shared kit in panel.css. */

/* ---- Market card: row 1 (state word · clock · pills) --------------------------------------------------------------- */
#w-market { margin-bottom: 0; }                                   /* app.css gave the old card 10 px; the kit sets the gap */
.mk2-status { flex-wrap: nowrap; min-height: var(--vz-tap); }
.mk2-state { flex: 0 0 auto; font: 800 15px/1.1 var(--font-ui); letter-spacing: .04em; white-space: nowrap; }
.mk2-clock {
  flex: 0 1 auto; min-width: 0; display: inline-block; padding: 0 4px; overflow: hidden; text-overflow: ellipsis;
  font: 400 var(--vz-fs-body)/var(--vz-tap) var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-1); white-space: nowrap; border-radius: 4px;
}
.mk2-clock b { font-weight: 700; color: var(--text-0); }
.mk2-pill { flex: 0 1 auto; min-width: 0; max-width: 46%; }

/* ---- row 2: candle countdown (ring from countdown.js + the #w-countdown text) ------------------------------------- */
.mk2-cd { gap: 8px; min-height: 30px; }
#w-market #w-countdown { flex: 1 1 auto; min-width: 0; font-size: var(--vz-fs-body); color: var(--text-1); line-height: 1.3; }
#w-market #w-countdown-val { font: 700 15px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-0); }
#w-market .mk2-cd-label { color: var(--text-1); }
#w-market .mk2-cd-closed { color: var(--vz-ink-warn); font-weight: 600; overflow-wrap: anywhere; }

/* ---- hero: the session timeline (kit .vz-tl); a little air above the axis labels ------------------------------------ */
#w-market .mk2-tl { margin-top: 2px; }
/* a closure band takes taps (the lanes under it are off anyway), so its peek 'Weekend · opens Mon 07:00 MYT' is
   reachable; the band sits in the pointer-events:none overlay. News-pause bands stay click-through: their diamond
   carries the same peek (11 Nov 2026, review P1) */
#w-market .vz-tl-band.is-closed { pointer-events: auto; }

/* ---- news row: a native <details> whose summary is a full-width tappable row with a coloured dot ------------------ */
#w-market .mk2-news { border-top: 0; padding-top: 0; }
#w-market .mk2-news > .vz-more-sum {
  min-height: var(--vz-tap); padding: 4px 10px; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-3); color: var(--text-0); font-size: var(--vz-fs-body);
}
#w-market .mk2-news > .vz-more-sum::before { order: 3; margin-left: auto; flex: 0 0 auto; color: var(--text-2); }   /* chevron at the right end */
#w-market .mk2-news.vz-t-down > .vz-more-sum { background: var(--vz-wash); border-color: var(--vz-c); }
#w-market .mk2-news.vz-t-warn > .vz-more-sum { border-color: var(--vz-c); }
.mk2-dot { order: 1; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--vz-c, var(--text-2)); }
.mk2-news.vz-t-off .mk2-dot { background: none; box-shadow: inset 0 0 0 1.5px var(--text-2); }   /* hollow = off: not colour-only */
.mk2-news.is-pulse .mk2-dot { animation: pulse 1.2s ease-in-out infinite; }
.mk2-news-line { order: 2; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.mk2-news.vz-t-down .mk2-news-line, .mk2-news.vz-t-warn .mk2-news-line { color: var(--vz-ink); }
#w-market .mk2-news > .vz-more-body { padding: 6px 2px 2px; gap: 2px; }
.mk2-news-title { font-size: var(--vz-fs-body); font-weight: 600; color: var(--text-0); }
.mk2-news-sub { font-size: var(--vz-fs-sm); color: var(--text-1); }
.mk2-news-dim { font-size: var(--vz-fs-sm); color: var(--text-2); }
.mk2-wk { margin-top: 6px; }
.mk2-wk-list .mk-ev { font-size: var(--vz-fs-sm); grid-template-columns: 88px minmax(0, 1fr); }
.mk2-wk-list .mk-ev-n { min-width: 0; overflow-wrap: anywhere; color: var(--text-0); }

/* ---- Session hours card -------------------------------------------------------------------------------------------- */
#w-sessions .ss2-wrap { min-width: 0; }
#w-sessions #sess-table { table-layout: auto; width: 100%; font-size: var(--vz-fs-sm); }
#w-sessions #sess-table th { font-size: var(--vz-fs-micro); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
#w-sessions #sess-table td { vertical-align: top; }
#w-sessions #sess-table td.num { white-space: nowrap; }
#w-sessions #sess-table .ss2-st { overflow-wrap: anywhere; }
#w-sessions #sess-table tr.open td { color: var(--vz-ink-up); font-weight: 600; }   /* AA ink in both themes (app.css used the fill green) */
#w-sessions #sess-table tr.open td.dim, #w-sessions #sess-table td.dim { color: var(--text-2); }
#w-sessions #sess-table tr.open td.num.dim { color: var(--text-1); }
#w-sessions .ss2-ctl { justify-content: flex-end; }

@media (max-width: 767px) {
  .mk2-state { font-size: 16px; }
  #w-market #w-countdown-val { font-size: 16px; }
  #w-market .mk2-news > .vz-more-sum { min-height: 36px; }
  #w-sessions #sess-table { font-size: var(--vz-fs-sm); }
}
@media (max-width: 340px) {
  .mk2-clock .mk2-tz { display: none; }                         /* 320 px: the zone stays in the clock's peek */
  #w-sessions #sess-table th, #w-sessions #sess-table td { padding: 3px 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .mk2-news.is-pulse .mk2-dot { animation: none; }
}
