/* Pine on-chart info table (shared by studio / live-bots / legacy chart) */
#pineDashboard {
  position: absolute;
  z-index: 6;
  top: 12px;
  left: 14px;
  right: auto;
  min-width: 210px;
  max-width: min(320px, 46vw);
  border: 1px solid rgba(124, 124, 124, 0.55);
  background: rgba(20, 24, 30, 0.82);
  font-family: var(--mono, "IBM Plex Mono", ui-monospace, monospace);
  font-size: 11px;
  line-height: 1.25;
  pointer-events: none;
  overflow: hidden;
}
#pineDashboard.hidden { display: none !important; }
#pineDashboard.pos-top-left { top: 12px; left: 14px; right: auto; }
#pineDashboard.pos-top-center { top: 12px; left: 50%; right: auto; transform: translateX(-50%); }
#pineDashboard.pos-top-right { top: 12px; right: 14px; left: auto; }
#pineDashboard.pos-bottom-right { top: auto; bottom: 18px; right: 14px; }
#pineDashboard table { width: 100%; border-collapse: collapse; }
#pineDashboard td {
  padding: 4px 8px;
  border-bottom: 1px solid rgba(124, 124, 124, 0.35);
  color: #e8e8e8;
  white-space: nowrap;
}
#pineDashboard tr:last-child td { border-bottom: 0; }
#pineDashboard td.label {
  background: rgba(124, 124, 124, 0.28);
  color: #d7d7d7;
  width: 48%;
}
#pineDashboard td.value { text-align: left; font-weight: 500; }
#pineDashboard td.tone-ok { background: rgba(34, 197, 94, 0.92); color: #04140a; }
#pineDashboard td.tone-ok_soft { background: rgba(132, 204, 22, 0.85); color: #0a1404; }
#pineDashboard td.tone-warn { background: rgba(239, 68, 68, 0.72); color: #fff5f5; }
#pineDashboard td.tone-warn_soft { background: rgba(234, 179, 8, 0.78); color: #1a1400; }
#pineDashboard td.tone-rating_c { background: rgba(249, 115, 22, 0.82); color: #1a0c00; }
#pineDashboard td.tone-bear { background: rgba(239, 68, 68, 0.92); color: #fff5f5; }
#pineDashboard td.tone-neutral { background: rgba(107, 114, 128, 0.9); color: #f3f4f6; }
#pineDashboard td.tone-active_pt { background: rgba(34, 197, 94, 0.78); color: #04140a; }
#pineDashboard td.tone-active_sl { background: rgba(239, 68, 68, 0.82); color: #fff5f5; }

/* Live Bots keeps the table compact and clear of the strategy badge. */
.live-bots-page #pineDashboard,
.live-bots-page #pineDashboard.pos-top-left,
.live-bots-page #pineDashboard.pos-top-center,
.live-bots-page #pineDashboard.pos-top-right,
.live-bots-page #pineDashboard.pos-bottom-right {
  top: 54px;
  right: auto;
  bottom: auto;
  left: 12px;
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  transform: none;
  border-color: rgba(124, 124, 124, 0.4);
  background: rgba(14, 20, 27, 0.9);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  font-size: 8px;
  line-height: 1.1;
}
.live-bots-page #pineDashboard td { padding: 2px 3px; }
.live-bots-page #pineDashboard td.label {
  width: 52%;
  background: rgba(124, 124, 124, 0.16);
  color: #b8c2cc;
}
