 
.fk-sighist, body[data-page="sighist"] .bl-head { max-width: 1180px; }
.fk-sighist { --fksh-dot: 26px; --fksh-gap: 4px; }
.fksh-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fksh-fbar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; min-width: 0; }
.fksh-fbar label { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 12px; color: var(--text-2); min-width: 0; max-width: 100%; }
.fksh-fbar select { font: 12.5px var(--sans); padding: 4px 6px; min-height: 30px; color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: 3px; max-width: 100%; min-width: 0; }
 
.fksh-muted { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.fksh-wait { margin: 0; padding: 10px; color: var(--muted); font-size: 12.5px; }
.fksh-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.fksh-segb { font: 600 12px/1.3 var(--sans); padding: 4px 10px; min-height: 30px; color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: 3px; cursor: pointer; }
.fksh-segb:hover { border-color: var(--accent); }
.fksh-segb[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); }
.fksh-segb:focus-visible, .fksh-fbar select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fksh-hint, .fksh-under { margin: 0 0 8px; max-width: 110ch; }
.fksh-under { margin: 8px 0 0; }
.fksh-gate, .fksh-empty { margin: 0; padding: 12px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--panel-2); color: var(--text); font-size: 13px; line-height: 1.55; }
.fksh-gate .btn, .fksh-empty .btn { margin-left: 6px; }

 
.fksh-counters { display: grid; gap: 6px; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.fksh-c { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; min-width: 0; background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: var(--radius); }
.fksh-c span { font-size: 11.5px; color: var(--text-2); overflow-wrap: anywhere; }
.fksh-c b { font: 700 18px/1.2 var(--mono); font-variant-numeric: tabular-nums; color: var(--text); overflow-wrap: anywhere; }
.fksh-c.fksh-k-loss { border-left-color: var(--down); }
.fksh-c.fksh-k-win, .fksh-c.fksh-k-partial { border-left-color: var(--gain); }
.fksh-c.fksh-k-open { border-left-color: var(--accent); }
.fksh-c.fksh-neg b { color: var(--down); }
.fksh-c.fksh-pos b { color: var(--gain); }
@media (max-width: 1000px) { .fksh-counters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fksh-counters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

 
.fksh-scroll { overflow-x: auto; overflow-y: hidden; max-width: 100%; min-width: 0; padding: 6px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: var(--radius); }
.fksh-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fksh-bead { display: grid; grid-auto-flow: column; grid-template-rows: repeat(6, var(--fksh-dot)); grid-auto-columns: var(--fksh-dot); gap: var(--fksh-gap); width: max-content; }
.fksh-streak { display: flex; gap: 8px; width: max-content; align-items: flex-start; }
.fksh-run { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.fksh-run-dots { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--fksh-rows, 6), var(--fksh-dot)); grid-auto-columns: var(--fksh-dot); gap: var(--fksh-gap); }
.fksh-run-n { font: 700 11px/1.2 var(--mono); color: var(--text-2); }
.fksh-run.fksh-run-loss .fksh-run-n { color: var(--down); }
.fksh-run.fksh-run-win .fksh-run-n { color: var(--gain); }
.fksh-dot { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: var(--fksh-dot); height: var(--fksh-dot); padding: 0; font: 700 12px/1 var(--sans); border-radius: 50%; border: 2px solid var(--line-2); color: var(--text); background: var(--panel); cursor: pointer; }
span.fksh-dot { cursor: default; }
.fksh-dot.fksh-L { color: var(--on-solid); background: var(--down); border-color: var(--down); }
.fksh-dot.fksh-T { color: var(--on-solid); background: var(--gain); border-color: var(--gain); }
.fksh-dot.fksh-N { color: var(--gain); background: var(--gain-bg); border-color: var(--gain); }
.fksh-dot.fksh-N0 { color: var(--text-2); background: var(--panel); border-color: var(--faint); }
.fksh-dot.fksh-H { color: var(--text-2); background: var(--bg-2); border-color: var(--faint); }
.fksh-dot.fksh-C { color: var(--accent); background: var(--panel); border-color: var(--accent); border-style: dashed; }
.fksh-dot.fksh-replay { border-style: dotted; }
button.fksh-dot:hover { box-shadow: 0 0 0 2px var(--select-line); }
button.fksh-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.fksh-dot[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--accent-2); }
.fksh-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--text-2); }
.fksh-legend li { display: inline-flex; align-items: center; gap: 5px; }
.fksh-legend .fksh-dot, .fksh-mini .fksh-dot { width: 18px; height: 18px; font-size: 10px; border-width: 1.5px; }
.fksh-mini .fksh-dot { width: 16px; height: 16px; font-size: 9px; }
.fksh-none { margin: 0; padding: 4px; color: var(--muted); font-size: 12.5px; }

 
.fksh-chart { min-width: 0; }
.fksh-chart svg { display: block; width: 100%; height: auto; }
.fksh-ax { stroke: var(--line-2); stroke-width: 1; }
.fksh-zero { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 2 3; }
.fksh-net { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.fksh-gross { fill: none; stroke: var(--faint); stroke-width: 1.2; stroke-dasharray: 5 4; }
.fksh-end { fill: var(--accent); }
.fksh-tx { fill: var(--text-2); font: 11px var(--sans); }

 
.fksh-tw { border: 0; }
.fksh-tbl { min-width: 760px; font-variant-numeric: tabular-nums; }
.fksh-tbl th, .fksh-tbl td { padding: 5px 8px; text-align: right; vertical-align: middle; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.fksh-tbl th:first-child, .fksh-tbl td:first-child, .fksh-tbl th.fksh-l, .fksh-tbl td.fksh-l { text-align: left; }
.fksh-tbl th:first-child { min-width: 170px; }
.fksh-tbl th { background: var(--panel-2); white-space: nowrap; }
.fksh-sort { font: 700 12px/1.3 var(--sans); padding: 2px 4px; color: var(--text); background: transparent; border: 1px solid transparent; border-radius: 2px; cursor: pointer; }
.fksh-sort:hover { border-color: var(--line-2); }
.fksh-sort:focus-visible, .fksh-name:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.fksh-name { font: 600 12.5px/1.35 var(--sans); padding: 0; color: var(--accent); background: none; border: 0; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.fksh-name:hover { text-decoration: underline; }
.fksh-few { display: inline-block; margin-left: 6px; padding: 0 6px; font-size: 11px; color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn); border-radius: 8px; white-space: nowrap; }
.fksh-neg { color: var(--down); }
.fksh-ltbl { min-width: 640px; }
.fksh-lres { margin-left: 6px; }
.fksh-pager { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-top: 8px; }
.fksh-pager .btn { min-height: 30px; }
.fksh-pos { color: var(--gain); }
.fksh-mini { display: inline-flex; flex-wrap: wrap; gap: 1px; width: 170px; vertical-align: middle; }
.fksh-grade { white-space: nowrap; }

 
.fksh-notes ul { margin: 0 0 8px; padding-left: 18px; }
.fksh-notes li { margin: 3px 0; line-height: 1.5; max-width: 120ch; }
.fksh-notes p { margin: 4px 0; line-height: 1.5; max-width: 120ch; }

 
dialog.fksh-drawer { position: fixed; inset: 0 0 0 auto; width: min(420px, 100vw); max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0 12px 16px; overflow-y: auto; color: var(--text); background: var(--panel); border: 0; border-left: 1px solid var(--ink); box-shadow: var(--shadow-lg); }
dialog.fksh-drawer::backdrop { background: var(--scrim); }
.fksh-dhead { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -12px 8px; padding: 8px 12px; background: linear-gradient(var(--title-1), var(--title-2)); border-bottom: 1px solid var(--ink); }
.fksh-dhead h2 { margin: 0; font-size: 13px; }
.fksh-dhead .btn { min-height: 28px; }
.fksh-dtop { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.fksh-dl { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%); gap: 0; margin: 0; }
.fksh-dl dt, .fksh-dl dd { margin: 0; padding: 5px 4px; border-bottom: 1px solid var(--line); font-size: 12.5px; overflow-wrap: anywhere; }
.fksh-dl dt { color: var(--text-2); }
.fksh-dl dd { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.fksh-dfoot { margin: 10px 0 0; }
 
.fksh-dchart { margin: 0 0 10px; min-width: 0; max-width: 100%; }
.fksh-dcv { min-width: 0; max-width: 100%; min-height: 60px; }
.fksh-dcv .fkc { max-width: 100%; }
.fksh-dcv > .fksh-wait, .fksh-dcv > .fksh-none { padding: 18px 10px; text-align: center; background: var(--panel-2); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.fksh-dnote { margin: 6px 0 0; }
@media (max-width: 760px) {
  .fk-sighist { --fksh-dot: 28px; font-size: 14px; }
  .fksh-fbar .fksh-segb, .fksh-fbar select { min-height: 40px; }
  .fksh-c b { font-size: 17px; }
   
  .fksh-ltbl { min-width: 0; }
  .fksh-ltbl th:nth-child(3), .fksh-ltbl td:nth-child(3), .fksh-ltbl th:nth-child(4), .fksh-ltbl td:nth-child(4) { display: none; }
  .fksh-ltbl th, .fksh-ltbl td { padding: 5px 4px; white-space: normal; }
  .fksh-ltbl th:first-child, .fksh-ltbl td:first-child { min-width: 0; width: 5.5em; }
  .fksh-lres { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .fksh-pager .btn, .fksh-ltbl .btn { min-height: 40px; padding: 4px 12px; font-size: 13px; }
   
  body[data-page="sighist"] .site-footer { padding-bottom: 88px; }
  dialog.fksh-drawer { inset: auto 0 0 0; width: 100vw; height: auto; max-height: 86vh; border-left: 0; border-top: 1px solid var(--ink); }
  .fksh-dhead .btn { min-height: 40px; padding: 4px 14px; font-size: 13px; }
}
