/* Short-squeeze map. Reuses cash.css for the page frame, table and category pills. */

.sq-opts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin: -2px 0 14px; color: #9aa0a6; font-size: 13px;
}
.sq-opts label { display: flex; align-items: center; gap: 6px; }
.sq-opts select {
  background: #161922; color: #e6e8eb; border: 1px solid #2b2f38;
  border-radius: 7px; padding: 5px 8px; font-size: 13px;
}
.sq-opts button[hidden] { display: none; }

.sq-status { color: #9aa0a6; font-size: 13px; min-height: 18px; margin: 0 0 8px; }
.sq-empty {
  color: #9aa0a6; font-size: 13px; padding: 28px 16px; text-align: center;
  border: 1px dashed #2b2f38; border-radius: 12px; background: #11141b;
}

.sq-chart {
  position: relative; overflow-x: auto; overflow-y: hidden;
  border: 1px solid #23262d; border-radius: 12px; background: #11141b;
}
.sq-chart svg { display: block; width: 100%; min-width: 680px; height: auto; }
.sq-chart svg text { font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
.sq-grid { stroke: #23262d; stroke-width: 1; }
.sq-axis { stroke: #3a3f4a; stroke-width: 1; }
.sq-tick { fill: #9aa0a6; font-size: 11px; }
.sq-axis-title { fill: #cbd2da; font-size: 12px; font-weight: 600; }
.sq-ref { stroke: #6b7280; stroke-width: 1; stroke-dasharray: 4 4; }
.sq-ref-label { fill: #9aa0a6; font-size: 10px; }
.sq-quad-label { fill: #6b7280; font-size: 11px; font-weight: 600; letter-spacing: .02em; }

.sq-bubble {
  cursor: pointer; stroke: #0f1115; stroke-width: 1;
  transition: fill-opacity .12s ease, stroke-width .12s ease;
}
.sq-bubble:hover { stroke: #fff; stroke-width: 1.5; fill-opacity: .9; }
.sq-bubble.selected { stroke: #fff; stroke-width: 2.5; }
.sq-bubble.fallback { stroke-dasharray: 2 2; }

.sq-label {
  fill: #e6e8eb; font-size: 11px; font-weight: 600; pointer-events: none;
  paint-order: stroke; stroke: #0f1115; stroke-width: 3px; stroke-linejoin: round;
}
.sq-label.sel { fill: #fff; }

.sq-tip {
  position: fixed; z-index: 300; display: none; max-width: 320px;
  background: #11141b; color: #cbd2da; border: 1px solid #2b2f38; border-radius: 10px;
  padding: 10px 12px; box-shadow: 0 12px 30px rgba(0,0,0,.55);
  font-size: 12px; line-height: 1.5; pointer-events: none;
}
.sq-tip .t { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.sq-tip .t .nm { color: #9aa0a6; font-weight: 400; }
.sq-tip .row { margin: 2px 0; }
.sq-tip .fin { color: #6b7280; font-size: 11px; margin-top: 6px; }
.sq-tip b { color: #e6e8eb; font-variant-numeric: tabular-nums; }

.sq-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin: 10px 0 8px; color: #9aa0a6; font-size: 12px;
}
.sq-legend .sq-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%;
                     margin-right: 5px; vertical-align: -1px; }
.sq-legend .sq-dim { color: #6b7280; }
.sq-quads { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.sq-quads span {
  background: #161922; border: 1px solid #23262d; border-radius: 999px;
  padding: 4px 9px; font-size: 12px; color: #9aa0a6;
}
.sq-quads b { color: #e6e8eb; font-variant-numeric: tabular-nums; }

.sq-compare .wrap { border: 1px solid #23262d; border-radius: 10px; overflow-x: auto; }
.sq-compare table { border-collapse: collapse; width: 100%; font-size: 13px; }
.sq-compare th, .sq-compare td { padding: 7px 10px; white-space: nowrap;
                                 border-bottom: 1px solid #1c1f26; }
.sq-compare th { text-align: left; background: #161922; font-weight: 600; }
.sq-compare th.num, .sq-compare td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sq-compare th[data-sort] { cursor: pointer; user-select: none; }
.sq-compare th[data-sort]:hover { color: #fff; }
.sq-compare .arrow { color: #6b7280; font-size: 10px; margin-left: 3px; }
.sq-compare .rm {
  background: transparent; color: #9aa0a6; border: 0; cursor: pointer;
  font-size: 15px; line-height: 1; padding: 0 2px; margin-left: 4px;
}
.sq-compare .rm:hover { color: #ea3943; }
.sq-compare .nm { color: #9aa0a6; font-weight: 400; }
.sq-hint { color: #9aa0a6; font-size: 13px; padding: 14px 16px;
           border: 1px dashed #2b2f38; border-radius: 10px; }

.sq-caveat {
  margin: 22px 0 4px; padding: 12px 14px; border: 1px solid #2b2f38;
  border-radius: 10px; background: #11141b; color: #9aa0a6;
  font-size: 12px; line-height: 1.6;
}
.sq-caveat strong { color: #cbd2da; }

@media (max-width: 700px) {
  body { padding: 14px; }
  .sq-opts { gap: 8px 12px; }
  .sq-chart svg { min-width: 620px; }
}
