/* #region zone:desk.style.regime — แถบสภาพตลาดเหนือกราฟ */
/* Compact strip (feature.regime_card): one tile per market, wraps to one column on narrow widths. Tokens only
   (desk-tokens.css), so light and dark themes follow automatically. */
.regime-strip {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-inner);
  min-width: 0;
}
.regime-strip[hidden] {
  display: none;
}
.regime-head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text);
  font-weight: 600;
  font-size: var(--u-text-sm);
}
.regime-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.regime-item {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-control);
  background: var(--panel2);
  border: 1px solid var(--line);
}
.regime-item:focus-visible {
  outline: 2px solid var(--acc-ring);
  outline-offset: 2px;
}
.regime-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 600;
  font-size: var(--u-text-sm);
  color: var(--text);
}
.regime-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}
.regime-item.tone-up {
  background: var(--up-soft);
}
.regime-item.tone-up .regime-dot {
  background: var(--up);
}
.regime-item.tone-caution {
  background: var(--amber-soft);
}
.regime-item.tone-caution .regime-dot {
  background: var(--amber);
}
.regime-item.tone-down {
  background: var(--down-soft);
}
.regime-item.tone-down .regime-dot {
  background: var(--down);
}
.regime-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
}
.regime-fact {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--u-text-xs);
  color: var(--muted);
  min-width: 0;
}
.regime-fact .icon {
  flex: none;
}
.regime-note {
  margin: 0;
  font-size: var(--u-text-xs);
  color: var(--faint);
}
/* Phones (the Desk's bottom-tab layout, < 900 px): the chart tab keeps the whole height for the chart, so the
   strip lives on the สรุป tab, above the info strip. */
@media (max-width: 899px) {
  #app-shell[data-mobile-tab='chart'] .regime-strip {
    display: none;
  }
}
/* #endregion */
/* #region zone:desk.regime.learned-mark — เครื่องหมาย "เรียนรู้" เล็กข้างป้ายถือต่อ/ระวัง/ออกที่ปรับจากผลจริง */
.stat-value > .desk-learned-mark {
  flex: none;
  box-sizing: border-box;
  padding: 2px var(--sp-2);
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  color: var(--accent-text);
  background: var(--panel);
  font: 600 11px/1.2 var(--font-sans, sans-serif);
  white-space: nowrap;
}
/* #endregion */
