.gi-sc-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  font-family: var(--font-ui, sans-serif);
  font-size: 9px;
  color: var(--text2);
}
.gi-sc-bar .gi-sc-btn {
  box-sizing: border-box;
  flex-shrink: 0;
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
  border-radius: 3px;
  padding: 1px 6px;
  font: inherit;
  letter-spacing: .04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.gi-sc-bar .gi-sc-btn:hover:not(:disabled) { background: var(--bg3); color: var(--text); border-color: var(--border); }
.gi-sc-bar .gi-sc-toggle { color: var(--text); border-color: var(--accent); }
.gi-sc-bar .gi-sc-toggle:hover:not(:disabled) { border-color: var(--accent); }
.gi-sc-bar .gi-sc-btn:disabled { opacity: .35; cursor: not-allowed; pointer-events: none; }
.gi-sc-btn:focus-visible,
.gi-sc-field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gi-sc-count { min-width: 3ch; color: var(--text3); font-variant-numeric: tabular-nums; }
.gi-sc-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.gi-sc-field { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; color: var(--text3); }
.gi-sc-field select {
  box-sizing: border-box;
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
  border-radius: 3px;
  font: inherit;
  padding: 1px 2px;
}
.gi-sc-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}
.gi-sc-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--text2);
  opacity: .7;
  transform: scaleX(0);
  transform-origin: left center;
}
.gi-sc-fill.is-active { animation: gi-sc-fill var(--gi-sc-dwell, 15000ms) linear forwards; }
.gi-sc-fill.is-paused { animation-play-state: paused; }
@keyframes gi-sc-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.gi-sc-multi {
  position: absolute;
  z-index: 40;
  overflow: hidden;
  background: var(--bg);
  pointer-events: auto;
}
.gi-sc-legend { pointer-events: none; }
.gi-sc-multi-surface { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
.gi-sc-multi-on #lw-chart-header { visibility: hidden; }
.gi-sc-legend {
  position: absolute;
  z-index: 2;
  top: 6px;
  left: 8px;
  max-width: calc(100% - 90px);
  padding: 5px 8px 4px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-ui, sans-serif);
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--text2);
}
.gi-sc-legend-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-bottom: 2px; }
.gi-sc-legend-title { font-weight: 700; font-size: 11px; color: var(--text); letter-spacing: .02em; }
.gi-sc-legend-tag { color: var(--text3); }
.gi-sc-legend-regime { font-weight: 700; color: var(--accent); }
.gi-sc-legend-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.gi-sc-legend-sw { width: 10px; height: 3px; border-radius: 1px; flex: 0 0 auto; }
.gi-sc-legend-name { min-width: 52px; color: var(--text); }
.gi-sc-legend-val { min-width: 62px; text-align: right; font-family: var(--font-mono, monospace); }
.gi-sc-legend-chg { min-width: 48px; text-align: right; font-family: var(--font-mono, monospace); font-weight: 600; color: var(--text); }
.gi-sc-legend-arrow { font-size: 9px; width: 10px; text-align: center; }
.gi-sc-legend-arrow.is-up { color: var(--green, #2ecc9a); }
.gi-sc-legend-arrow.is-down { color: var(--red, #ff5a5f); }
.gi-sc-legend-arrow.is-flat { color: var(--text3); }
.gi-sc-legend-foot { margin-top: 2px; color: var(--text3); font-size: 9.5px; }
.gi-sc-ghost {
  position: absolute;
  z-index: 41;
  opacity: 1;
  pointer-events: none;
  transition: opacity 1000ms cubic-bezier(.45, 0, .25, 1);
}
.gi-sc-ghost.is-leaving { opacity: 0; }
.gi-sc-active #section-fxpairs { position: relative; }
.gi-sc-multi-on #tv-pair-tabs .tv-tab.active,
.gi-sc-multi-on #lw-fs-tabs .tv-tab.active { color: var(--text2); background: transparent; }
#lw-chart-header { transition: min-height .3s ease; }
.gi-sc-active #lw-chart-header { min-height: 38px; }
@keyframes gi-sc-swap { from { opacity: 0; transform: translateY(2px); } to { opacity: 1; transform: none; } }
.gi-sc-swap { animation: gi-sc-swap 700ms cubic-bezier(.25, 0, .2, 1) both; }
@media (prefers-reduced-motion: reduce) {
  .gi-sc-ghost { display: none; }
  #lw-chart-header { transition: none; }
  .gi-sc-swap { animation: none; }
  .gi-sc-fill.is-active { animation: none; transform: scaleX(1); opacity: .4; }
}
