/* FastAPI bridge styles: small additions around the locked v17 contract. */
a{
  color: inherit;
  text-decoration: none;
}

.section-pane.is-macro-chart-mode .tb-tabs,
.section-pane.is-macro-chart-mode .tb-divider-tabs{
  display: none;
}

.t-tag.target-hit{
  background: var(--green-soft);
  color: var(--green);
  border-color: rgba(78,201,168,0.32);
}

.t-tag.stopped-out{
  background: var(--red-soft);
  color: var(--red);
  border-color: rgba(224,108,117,0.32);
}

.section-pane{
  height: 100%;
  min-height: 0;
  overflow: auto;
}

.section-pad{
  padding: 14px;
}

.tape-item .delta.pos,
.tape-item .delta.up{
  color: var(--green);
}

.tape-item .delta.neg,
.tape-item .delta.down{
  color: var(--red);
}

.cv .tbl-wrap{
  min-width: 0;
}

.tbl-scroll{
  max-height: calc(31px + (12 * 31px));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.tbl-scroll > table.tbl{
  min-width: 100%;
}

.tbl-scroll > table.tbl thead th{
  position: sticky;
  top: 0;
  z-index: 5;
}

.tbl-scroll::-webkit-scrollbar{
  width: 7px;
  height: 7px;
}

.tbl-scroll::-webkit-scrollbar-track{
  background: rgba(16, 14, 9, 0.92);
}

.tbl-scroll::-webkit-scrollbar-thumb{
  background: rgba(245, 197, 66, 0.28);
  border-radius: 999px;
}

.tbl-scroll::-webkit-scrollbar-thumb:hover{
  background: rgba(245, 197, 66, 0.42);
}

.section-pane.is-coil-chart-mode .cv-detail .split-bottom{
  grid-template-columns: minmax(0, 1.85fr) minmax(260px, 0.75fr);
}

.section-pane.is-coil-chart-mode .cv-detail .split-bottom .tbl-wrap{
  min-width: 0;
}

.sector-radar{
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.sector-radar-row{
  display: grid;
  grid-template-columns: 8px minmax(58px, 0.85fr) minmax(80px, 1.4fr) 22px;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
}

.sector-radar-dot{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--au);
  box-shadow: 0 0 8px var(--au-glow);
}

.sector-radar-label{
  color: var(--t-1);
  font-family: var(--f-sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sector-radar-track{
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(245,197,66,0.10);
  background:
    radial-gradient(circle at 18% 50%, rgba(245,197,66,0.14), transparent 22%),
    linear-gradient(90deg, rgba(245,197,66,0.03), rgba(245,197,66,0.08));
  overflow: hidden;
}

.sector-radar-track span{
  display: block;
  width: var(--radar-width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(245,197,66,0.20), rgba(245,197,66,0.82));
  box-shadow: 0 0 10px rgba(245,197,66,0.26);
}

.sector-radar-count{
  color: var(--t-2);
  text-align: right;
}

.sector-bars{
  display: grid;
  gap: 8px;
}

.sector-radar-chart{
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(245,197,66,0.10);
}

.sector-radar-title{
  margin-bottom: 6px;
  color: var(--au);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sector-radar-chart svg{
  display: block;
  width: 100%;
  min-height: 184px;
  overflow: visible;
}

.radar-ring{
  fill: none;
  stroke: rgba(245,197,66,0.10);
  stroke-width: 0.7;
}

.radar-axis{
  stroke: rgba(245,197,66,0.13);
  stroke-width: 0.55;
}

.radar-fill{
  fill: rgba(245,197,66,0.16);
  stroke: none;
}

.radar-line{
  fill: none;
  stroke: rgba(245,197,66,0.88);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 3px rgba(245,197,66,0.35));
}

.radar-label,
.radar-count{
  font-family: var(--f-sans);
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.radar-label{
  fill: var(--t-1);
  font-size: 4px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.radar-count{
  fill: var(--t-3);
  font-size: 3.5px;
}

.table-seg{
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.brow-empty{
  grid-column: 1 / -1;
}

.tps-chart{
  width: 100%;
  height: 100%;
  min-height: 380px;
  cursor: grab;
  user-select: none;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.tps-chart:active{
  cursor: grabbing;
}

.tps-chart-svg{
  display: block;
  width: 100%;
  height: 100%;
  font-family: var(--f-mono);
}

.tps-tv-overlays{
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.tps-chart.is-tv-chart table,
.tps-chart.is-tv-chart canvas{
  font-family: var(--f-mono);
}

.tps-chart.is-tv-chart .tv-lightweight-charts{
  position: relative;
  z-index: 1;
}

.chart-loading{
  height: 100%;
  min-height: 380px;
  display: grid;
  place-items: center;
  color: var(--t-2);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cf-body{
  min-height: 420px;
}

.side-foot-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.side-foot-actions a{
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--t-1);
  font: 700 10px var(--f-sans);
  letter-spacing: .04em;
  padding: 8px 9px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.side-foot-actions a:hover{
  border-color: var(--line-au);
  color: var(--au);
}

@media (max-width: 760px){
  .section-pane.is-coil-chart-mode .cv-detail .split-bottom{
    grid-template-columns: 1fr;
  }

  .cf-body,
  .tps-chart,
  .chart-loading{
    min-height: 360px;
  }
}
