/*!
 * Strategy Bar -- scoped styles.
 * All rules nested under .sb-scope to avoid collisions with host page (Accountability).
 */
.sb-scope { color: #e8e9ed; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; font-size: 14px; line-height: 1.45; }
.sb-scope * { box-sizing: border-box; }
.sb-scope .sb-row {
  display: grid;
  grid-template-columns: 220px 1fr 64px 96px;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
}
.sb-scope .sb-name .sb-title { font-weight: 600; font-size: 14px; }
.sb-scope .sb-name .sb-meta { font-size: 11px; color: #6c7385; margin-top: 3px; }
.sb-scope .sb-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-right: 6px;
  vertical-align: middle;
}
.sb-scope .sb-badge--long  { background: #052e29; color: #34d399; }
.sb-scope .sb-badge--short { background: #3b0a0a; color: #f87171; }
.sb-scope .sb-bar { position: relative; }
.sb-scope .sb-svg-wrap { position: relative; }
.sb-scope .sb-svg { width: 100%; height: 42px; display: block; }  /* v1.2.0: taller bar */
.sb-scope .sb-labels {
  position: relative;
  height: 14px;
  margin-bottom: 1px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 11px;
  color: #94a3b8;
  pointer-events: none;
}
.sb-scope .sb-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  line-height: 14px;
}
.sb-scope .sb-label-num  { font-weight: 700; color: #94a3b8; }
.sb-scope .sb-label-vwap { font-weight: 800; color: #e8e9ed; letter-spacing: 0.02em; }
.sb-scope .sb-score { text-align: right; font-size: 20px; font-weight: 700; }
.sb-scope .sb-delta { text-align: right; font-size: 12px; color: #10b981; }
.sb-scope .sb-delta.neg { color: #ef4444; }
.sb-scope .sb-delta .sb-tag { background: #0d1f1a; color: #10b981; padding: 2px 6px; border-radius: 3px; font-weight: 600; font-size: 11px; margin-left: 4px; }
.sb-scope .sb-delta.neg .sb-tag { background: #1f0e0e; color: #ef4444; }
.sb-scope .sb-days { display: inline-block; padding: 2px 6px; border-radius: 3px; font-size: 11px; font-weight: 600; margin-left: 4px; }
.sb-scope .sb-d-cool { background: #1f2937; color: #94a3b8; }
.sb-scope .sb-d-warm { background: #0d1f1a; color: #34d399; }
.sb-scope .sb-d-hot  { background: #052e29; color: #6ee7b7; box-shadow: 0 0 0 1px #10b981 inset; }
.sb-scope .sb-ext { display: inline-block; padding: 1px 6px; border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; margin-left: 4px; vertical-align: middle; }
.sb-scope .sb-ext-on  { background: #78350f; color: #fbbf24; box-shadow: 0 0 0 1px #d97706 inset; }
.sb-scope .sb-ext-off { background: #1f2937; color: #6b7280; }

/* Compact mode for open-positions inline use. Hide the name column; bar stretches. */
.sb-scope.sb-compact .sb-row { grid-template-columns: 1fr 52px 80px; }
.sb-scope.sb-compact .sb-name { display: none; }

/* --- Scientific layer add-ons (v1.1.0, spec §4.5) --- */
.sb-scope .sb-sizing {
  display: inline-block;
  background: #0d1a2e;
  color: #93c5fd;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 8px;
  vertical-align: middle;
  cursor: help;
}
.sb-scope .sb-sizing.sb-sizing-refuse { background: #2a0a0a; color: #fca5a5; }
.sb-scope .sb-edge-mark {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  color: #60a5fa;
  cursor: help;
  opacity: 0.75;
}
/* Edge-stats tooltip (pure CSS) */
.sb-scope .sb-name[data-sb-tip] { position: relative; cursor: help; }
.sb-scope .sb-name[data-sb-tip]:hover::after {
  content: attr(data-sb-tip);
  position: absolute;
  left: 0; top: calc(100% + 4px);
  background: #0b0d12;
  border: 1px solid #2a3245;
  color: #e8e9ed;
  font-size: 11px;
  line-height: 1.45;
  padding: 6px 9px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 50;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  font-weight: normal;
}
