/* Reuse the averaging tool's GMC palette, type, form, and replay controls. */
.fst { --gold: #f3c97a }
.fst button, .fst .home-link { min-height: 44px; min-width: 44px }
.fst #reset { background: var(--red); border-color: var(--red); color: var(--bg) }
.fst .quiet, .fst .home-link { border-color: #6f7e92 }
.fst a { color: inherit }
.fst a:focus-visible, .fst select:focus-visible, .fst .table-wrap:focus-visible { outline: 2px solid var(--green); outline-offset: 4px }
.fst .skip-link { position: absolute; top: -80px; left: 12px; z-index: 30; padding: 12px; background: var(--panel) }
.fst .skip-link:focus { top: 8px }
.fst .settings label { min-width: 0 }
.fst .settings label>span { float: none; margin-left: 3px; font-size: 11px }
.fst input[type=number], .fst select { min-height: 44px; border-color: #6f7e92 }
.fst select { width: 100%; margin-top: 9px; padding: 10px 8px; background: #0f151e; color: var(--text); border: 1px solid #6f7e92; border-radius: 6px; font: 500 16px 'DM Sans', sans-serif }
.fst input:disabled { color: var(--muted); background: #1b2430; opacity: 1; cursor: not-allowed }
.fst .market { background: #17202c; box-shadow: none; position: static }
.fst .timeline-slider { height: 44px }
.fst #frame { flex-shrink: 0; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums }
.fst .panel { padding: 22px; overflow: visible }
.fst h2 { margin: 0; font-size: 18px; line-height: 1.5 }
.fst .chart { margin: 8px 0 0 }
.fst small { font-size: 10px }
.fst .chart-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line) }
.fst .chart-summary dt { color: var(--muted); font-size: 12px }
.fst .chart-summary dd { margin: 6px 0 0; font: 800 22px/1.4 Manrope, sans-serif; overflow-wrap: anywhere; font-variant-numeric: tabular-nums }
.fst .positions { margin-top: 22px }
.fst .positions-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px }
.fst .positions-heading span { font-size: 12px; color: var(--muted) }
.fst .table-wrap { max-width: 100%; overflow-x: auto; border-block: 1px solid var(--line) }
.fst table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums }
.fst th, .fst td { padding: 13px 12px; white-space: nowrap }
.fst th:first-child, .fst td:first-child, .fst th:nth-child(2), .fst td:nth-child(2) { text-align: left }
.fst thead { color: var(--muted) }
.fst th { font-weight: 500 }
.fst tbody tr { border-top: 1px solid var(--line) }
.fst tfoot { border-top: 1px solid #6f7e92; font-weight: 700 }
.fst .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0 }
.fst [hidden] { display: none !important }
@media (max-width: 760px) {
  .fst .settings label { font-size: 12px }
  .fst .settings label>span { display: block; margin: 2px 0 0; font-size: 10px; min-height: 14px }
  .fst .settings label { display: flex; flex-direction: column }
  .fst .settings label input, .fst .settings label select { margin-top: auto }
  .fst select { font-size: 16px; padding-inline: 6px }
  .fst .market { padding: 6px 10px; gap: 8px; margin-bottom: 14px }
  .fst .pip-step { font-size: 11px; gap: 6px }
  .fst .pip-step input { width: 58px; padding-inline: 6px }
  .fst .panel { padding: 16px }
  .fst .positions-heading { align-items: start }
  .fst .positions-heading h2 { font-size: 16px }
  .fst .positions-heading span { text-align: right }
  .fst table { font-size: 11px }
  .fst th, .fst td { padding: 12px 6px }
  .fst main { padding-bottom: calc(100px + env(safe-area-inset-bottom)) }
  .fst .floating-controls { box-shadow: 0 -4px 16px #0006 }
}
@media (max-width: 540px) {
  .fst .chart-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
}
