:root {
  color-scheme: dark;
  --ink: #ebe8db;
  --muted: #9da89e;
  --paper: #0d1512;
  --panel: #14211c;
  --panel-2: #192a23;
  --line: #30463b;
  --felt: #174f3c;
  --signal: #d3b55b;
  --red: #e05d57;
  --black-suit: #d9ded9;
  --ok: #68c29a;
  --danger: #ee766f;
  --metric-high: #ef8a75;
  --metric-low: #70b8d8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Noto Sans SC", sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 40px);
}
button, a { font: inherit; }
.masthead {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 30px 4vw 22px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 6px;
  color: var(--signal);
  font: 600 10px/1.2 ui-monospace, monospace;
  letter-spacing: .22em;
}
h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(25px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: .04em;
}
.connection {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
}
.dot.online { background: var(--ok); }
.sequence {
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-family: ui-monospace, monospace;
}
.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 0 4vw;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.tab, .export {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 15px 14px 12px;
  text-decoration: none;
  cursor: pointer;
}
.tab:hover, .tab.active { color: var(--ink); }
.tab.active { border-bottom-color: var(--signal); }
.export { margin-left: auto; color: var(--signal); }
main { position: relative; padding: 18px 2vw 48px; }
.view { display: none; }
.view.active { display: block; }
#view-live.active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 30%);
  gap: 18px;
}
.live-main { display: grid; align-content: start; gap: 14px; min-width: 0; }
.current-hand {
  min-height: 620px;
  padding: clamp(12px, 1.25vw, 20px);
  border: 1px solid var(--line);
  background: var(--panel);
}
.equity-curve {
  position: relative;
  overflow: hidden;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--signal) 45%, var(--line));
  background:
    linear-gradient(135deg, rgba(211, 181, 91, .07), transparent 45%),
    var(--panel);
}
.equity-curve::before {
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
  pointer-events: none;
}
.equity-curve > * { position: relative; }
.equity-curve.loading { color: var(--signal); }
.equity-curve-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.equity-curve-head h3 {
  margin: 2px 0 0;
  font: 600 18px/1.2 "Songti SC", "STSong", serif;
}
.equity-curve-head small,
.equity-curve-note {
  color: var(--muted);
  font: 9px/1.5 ui-monospace, monospace;
}
.equity-curve-head > strong { color: var(--signal); font: 24px/1 ui-monospace, monospace; }
.equity-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 10px;
  background: var(--line);
}
.equity-stat { padding: 8px 10px; background: rgba(8, 16, 13, .88); }
.equity-stat small { display: block; color: var(--muted); font: 8px ui-monospace, monospace; }
.equity-stat strong { display: block; margin-top: 4px; color: var(--ink); font: 15px ui-monospace, monospace; }
.equity-chart { display: block; width: 100%; height: auto; cursor: crosshair; }
.equity-chart:focus-visible { outline: 1px solid var(--signal); outline-offset: 3px; }
.equity-grid-line { stroke: color-mix(in srgb, var(--line) 70%, transparent); stroke-width: 1; }
.equity-mid-line { stroke: rgba(211, 181, 91, .35); stroke-width: 1; stroke-dasharray: 4 4; }
.equity-area { fill: url("#equity-area-gradient"); }
.equity-line { fill: none; stroke: var(--signal); stroke-width: 2.4; stroke-linejoin: round; }
.equity-axis-label { fill: var(--muted); font: 8px ui-monospace, monospace; }
.equity-hero-guide { stroke: #fff; stroke-width: 1; stroke-dasharray: 3 3; opacity: .55; }
.equity-hero-dot { fill: #fff; stroke: var(--red); stroke-width: 3; }
.equity-hero-label { fill: #fff; font: 600 9px ui-monospace, monospace; paint-order: stroke; stroke: #0b1511; stroke-width: 3px; }
.equity-hover-line { stroke: rgba(255, 255, 255, .72); stroke-width: 1; stroke-dasharray: 2 3; }
.equity-hover-dot { fill: var(--signal); stroke: #fff; stroke-width: 1.5; }
.equity-hover-tooltip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 3px;
  width: 154px;
  padding: 9px 11px;
  border: 1px solid color-mix(in srgb, var(--signal) 65%, white);
  background: rgba(5, 13, 10, .96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .42);
  pointer-events: none;
  transform: translate(11px, -100%);
}
.equity-hover-tooltip[hidden] { display: none; }
.equity-hover-tooltip.flip { transform: translate(calc(-100% - 11px), -100%); }
.equity-hover-tooltip strong { color: var(--signal); font: 700 15px ui-monospace, monospace; }
.equity-hover-tooltip span,
.equity-hover-tooltip small { color: var(--ink); font: 9px/1.35 ui-monospace, monospace; }
.equity-hover-tooltip small { color: var(--muted); }
.equity-curve-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 14px; margin-top: 8px; }
.live-equity-dashboard {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.equity-display-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--muted);
  font: 9px/1.4 ui-monospace, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.equity-display-controls .reasoning-switch {
  font: 11px/1.4 system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.live-equity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.live-equity-dashboard.is-comparing .live-equity-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.all-equity-curves { display: contents; }
.all-equity-curves[hidden] { display: none; }
.all-equity-status {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font: 10px/1.5 ui-monospace, monospace;
}
.live-equity-dashboard:not(.is-comparing) #equity-curve .equity-chart {
  max-height: 196px;
}
.equity-curve.compact {
  overflow: visible;
  min-width: 0;
  min-height: 70px;
  padding: 10px 11px;
}
.equity-curve.compact:hover,
.equity-curve.compact:focus-within { z-index: 5; }
.equity-curve.compact .equity-curve-head { gap: 7px; margin-bottom: 6px; }
.equity-curve.compact .equity-curve-head small { display: none; }
.equity-curve.compact .equity-curve-head h3 {
  overflow: hidden;
  max-width: 100%;
  margin: 0;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.equity-curve.compact .equity-curve-head > strong { font-size: 17px; }
.equity-curve.compact .equity-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 4px;
}
.equity-curve.compact .equity-stat { overflow: hidden; padding: 5px 6px; }
.equity-curve.compact .equity-stat small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.equity-curve.compact .equity-stat strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.equity-curve.compact .equity-chart { max-height: 132px; }
.equity-curve.compact .equity-curve-note { display: none; }
.empty {
  color: var(--muted);
  max-width: 460px;
  padding: 80px 0;
  font-family: "Songti SC", serif;
  font-size: 22px;
  line-height: 1.7;
}
.hand-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}
.hand-id { font: 600 12px ui-monospace, monospace; color: var(--signal); }
.pot { text-align: right; }
.pot strong { display: block; font: 600 34px/1 "Songti SC", serif; }
.board { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.card {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 60px;
  padding: 0 9px;
  border-radius: 5px;
  background: #eee9d9;
  color: #17201c;
  border: 1px solid #fff;
  font: 700 20px/1 Georgia, serif;
}
.card.red { color: #b62d2a; }
.players {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.player { background: var(--panel-2); padding: 14px; }
.player.hero { background: var(--felt); }
.player-name { font-weight: 650; }
.player-meta { margin-top: 5px; color: var(--muted); font-size: 12px; }
.players.table-layout {
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1.08fr)) minmax(0, 1fr);
  grid-template-rows: repeat(3, minmax(184px, auto));
  align-items: stretch;
  background:
    radial-gradient(ellipse at center, rgba(21, 68, 50, .92), rgba(9, 23, 18, .97) 68%);
}
.table-layout .player {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 9px 10px 10px;
}
.table-center {
  grid-column: 2 / 4;
  grid-row: 2;
  display: grid;
  place-content: center;
  gap: 4px;
  min-height: 80px;
  color: color-mix(in srgb, var(--signal) 48%, var(--muted));
  text-align: center;
  letter-spacing: .15em;
}
.table-center span { font: 700 10px ui-monospace, monospace; }
.table-center small { font: 8px ui-monospace, monospace; letter-spacing: .05em; }
.table-center .table-board {
  justify-content: center;
  margin: 7px 0;
  letter-spacing: normal;
}
.table-center .table-board .card {
  width: 31px;
  height: 39px;
  font-size: 17px;
}
.table-seat-1 { grid-column: 2 / 4; grid-row: 3; }
.table-seat-2 { grid-column: 1; grid-row: 3; }
.table-seat-3 { grid-column: 1; grid-row: 2; }
.table-seat-4 { grid-column: 1; grid-row: 1; }
.table-seat-5 { grid-column: 2; grid-row: 1; }
.table-seat-6 { grid-column: 3; grid-row: 1; }
.table-seat-7 { grid-column: 4; grid-row: 1; }
.table-seat-8 { grid-column: 4; grid-row: 2; }
.table-seat-9 { grid-column: 4; grid-row: 3; }
.player-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 5px;
}
.player-identity { min-width: 0; flex: 1; }
.player-eml {
  margin-top: 2px;
  color: var(--signal);
  font: 650 11px/1.15 ui-monospace, monospace;
  letter-spacing: .03em;
  white-space: nowrap;
}
.table-layout .player-name {
  overflow: hidden;
  min-width: 0;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-layout .player {
  container-name: player-card;
  container-type: inline-size;
}
.table-layout .player-meta {
  margin-top: 3px;
  font: 9px/1.35 ui-monospace, monospace;
}
.table-layout .player > .board {
  gap: 4px;
  margin: 7px 0 0;
}
.table-layout .player > .board:empty { display: none; }
.table-layout .player > .board .card {
  min-width: 27px;
  height: 35px;
  padding: 0 5px;
  font-size: 15px;
}
.player-status {
  flex: 0 0 auto;
  padding: 2px 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 8px/1 ui-monospace, monospace;
  white-space: nowrap;
}
.player-status.acting { border-color: var(--signal); color: var(--signal); }
.player-status.all-in { border-color: var(--danger); color: var(--danger); }
.player-status.folded { border-color: #65706a; color: #8a948f; }
.player-street-profile {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  font-family: ui-monospace, monospace;
}
.player-street-profile.unavailable { opacity: .68; }
.player-street-profile.hero-profile {
  border-top-color: color-mix(in srgb, var(--signal) 65%, var(--line));
}
.player-profile-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
}
.player-style-tag {
  overflow: hidden;
  flex: 1 1 auto;
  max-width: 100%;
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  padding: 3px 5px;
  border: 1px solid color-mix(in srgb, var(--signal) 50%, var(--line));
  color: var(--signal);
  font: 700 8px/1.15 ui-monospace, monospace;
}
.player-style-tag b {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding-right: 4px;
  border-right: 1px solid currentColor;
  font-weight: 500;
  opacity: .7;
}
.player-style-tag > span {
  overflow: hidden;
  display: -webkit-box;
  min-width: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.player-style-tag.confidence-high { border-color: var(--ok); color: var(--ok); }
.player-style-tag.street-high { border-color: var(--metric-high); color: var(--metric-high); }
.player-style-tag.street-low { border-color: var(--metric-low); color: var(--metric-low); }
.player-profile-sample {
  flex: 0 0 auto;
  color: var(--muted);
  font: 7px/1 ui-monospace, monospace;
  white-space: nowrap;
}
.player-street-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}
.player-street-metric {
  --metric-family: var(--line);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1px 3px;
  min-width: 0;
  padding: 4px 5px;
  border-left: 2px solid var(--line);
  border-top: 1px solid color-mix(in srgb, var(--metric-family) 58%, transparent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--metric-family) 9%, transparent), transparent 68%),
    rgba(3, 10, 7, .2);
}
.player-street-metric.metric-family-entry { --metric-family: #d3b55b; }
.player-street-metric.metric-family-pressure { --metric-family: #d58d55; }
.player-street-metric.metric-family-fold { --metric-family: #70b8d8; }
.player-street-metric.metric-family-call { --metric-family: #68c29a; }
.player-street-metric.metric-family-raise { --metric-family: #e47872; }
.player-street-metric.deviation-slight.high { border-left-color: color-mix(in srgb, var(--metric-high) 38%, var(--line)); }
.player-street-metric.deviation-slight.low { border-left-color: color-mix(in srgb, var(--metric-low) 38%, var(--line)); }
.player-street-metric.deviation-moderate.high { border-left-color: color-mix(in srgb, var(--metric-high) 74%, var(--line)); }
.player-street-metric.deviation-moderate.low { border-left-color: color-mix(in srgb, var(--metric-low) 74%, var(--line)); }
.player-street-metric.deviation-strong {
  border-left-width: 3px;
}
.player-street-metric.deviation-strong.high {
  border-left-color: var(--metric-high);
  background: linear-gradient(135deg, rgba(238, 118, 111, .14), transparent 72%), rgba(3, 10, 7, .2);
}
.player-street-metric.deviation-strong.low {
  border-left-color: var(--metric-low);
  background: linear-gradient(135deg, rgba(112, 184, 216, .14), transparent 72%), rgba(3, 10, 7, .2);
}
.player-street-metric.sparse { border-left-style: dotted; }
.player-street-metric.unavailable { opacity: .45; }
.player-street-metric small {
  overflow: hidden;
  color: color-mix(in srgb, var(--metric-family) 82%, var(--ink));
  font: 7px/1 ui-monospace, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-street-metric strong {
  grid-row: span 2;
  color: var(--ink);
  font: 700 12px/1 ui-monospace, monospace;
}
.player-street-metric.deviation-moderate.high strong,
.player-street-metric.deviation-moderate.high em,
.player-street-metric.deviation-strong.high strong,
.player-street-metric.deviation-strong.high em { color: var(--metric-high); }
.player-street-metric.deviation-moderate.low strong,
.player-street-metric.deviation-moderate.low em,
.player-street-metric.deviation-strong.low strong,
.player-street-metric.deviation-strong.low em { color: var(--metric-low); }
.player-street-metric.deviation-slight.high em { color: color-mix(in srgb, var(--metric-high) 68%, var(--muted)); }
.player-street-metric.deviation-slight.low em { color: color-mix(in srgb, var(--metric-low) 68%, var(--muted)); }
.player-street-metric em {
  overflow: hidden;
  color: var(--muted);
  font: 6px/1.15 ui-monospace, monospace;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-street-metric em i { font-style: normal; opacity: .72; }
.player-street-metric em b {
  margin-right: 2px;
  padding: 1px 2px;
  border: 1px solid currentColor;
  font-size: 5px;
  font-weight: 700;
  letter-spacing: .04em;
}
.player-street-metric.deviation-neutral em b {
  border-color: var(--line);
  color: var(--muted);
}
@container player-card (max-width: 280px) {
  .player-street-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .player-street-metric {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
  .player-street-metric small {
    overflow: visible;
    line-height: 1.15;
    text-overflow: clip;
    white-space: normal;
  }
  .player-street-metric strong {
    grid-row: auto;
    font-size: 11px;
  }
}
.player-profile-empty {
  color: var(--muted);
  font: 7px/1.35 ui-monospace, monospace;
}
.player-range-mini {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
  font: 7px/1.1 ui-monospace, monospace;
}
.player-range-mini > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.player-range-mini > div strong { color: var(--ink); font-size: 8px; }
.player-range-mini > div small { color: var(--muted); font-size: 6px; }
.player-range-mini-track {
  overflow: hidden;
  display: flex;
  width: 100%;
  height: 5px;
  background: #09100d;
}
.player-range-mini-track i { display: block; min-width: 0; height: 100%; }
.player-range-mini-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
}
.player-range-mini-values b {
  overflow: hidden;
  font-size: 6px;
  font-weight: 600;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}
.player-range-mini-track .mini-strong_value { background: #ef806c; }
.player-range-mini-track .mini-marginal_showdown { background: #78acd8; }
.player-range-mini-track .mini-draws { background: #e2bd58; }
.player-range-mini-track .mini-air { background: #8b9690; }
.player-range-mini-track .mini-bluff_candidates { background: #b984d7; }
.player-range-mini-values .mini-strong_value { color: #ef806c; }
.player-range-mini-values .mini-marginal_showdown { color: #78acd8; }
.player-range-mini-values .mini-draws { color: #e2bd58; }
.player-range-mini-values .mini-air { color: #8b9690; }
.player-range-mini-values .mini-bluff_candidates { color: #b984d7; }
.player-range-mini.loading,
.player-range-mini.unavailable,
.player-range-mini.waiting { opacity: .62; }
.player-range-mini-skeleton {
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #26352e 20%, #526159 45%, #26352e 70%);
  background-size: 220% 100%;
  animation: player-range-loading 1.1s linear infinite;
}
@keyframes player-range-loading { to { background-position: -220% 0; } }
.player-street-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 7px;
  color: var(--muted);
  font: 7px/1.3 ui-monospace, monospace;
}
.player-street-footer strong {
  color: color-mix(in srgb, var(--signal) 78%, var(--ink));
  font-weight: 600;
}
.player-tendency {
  overflow: hidden;
  margin-top: 5px;
  color: color-mix(in srgb, var(--signal) 72%, var(--muted));
  font: 8px/1.25 ui-monospace, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-layout .player.folded {
  opacity: .5;
  background:
    repeating-linear-gradient(-45deg, rgba(120, 130, 125, .06) 0 6px, transparent 6px 12px),
    #111713;
  filter: saturate(.35);
}
.table-layout .player.folded .player-name { text-decoration: line-through; }
.table-layout .player.acting { box-shadow: inset 0 0 0 1px var(--signal); }
.table-layout .player.all-in:not(.folded) { box-shadow: inset 0 0 0 1px var(--danger); }
.player-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: auto;
  padding-top: 7px;
}
.player-card-action {
  min-width: 0;
  padding: 5px 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  font: 8px/1.2 ui-monospace, monospace;
  white-space: nowrap;
  cursor: pointer;
}
.player-node-trigger {
  border-color: color-mix(in srgb, var(--signal) 68%, var(--line));
  color: var(--signal);
}
.player-card-action:hover,
.player-card-action:focus-visible {
  outline: 0;
  color: var(--ink);
  border-color: var(--signal);
  background: color-mix(in srgb, var(--signal) 10%, var(--panel-2));
}
.action-log-disclosure {
  margin-top: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-2) 72%, transparent);
}
.action-log-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  color: var(--signal);
  font: 600 10px/1.2 ui-monospace, monospace;
  letter-spacing: .1em;
  cursor: pointer;
  list-style: none;
}
.action-log-disclosure > summary::-webkit-details-marker { display: none; }
.action-log-disclosure > summary small {
  margin-left: auto;
  color: var(--muted);
  font: 9px/1.2 ui-monospace, monospace;
  letter-spacing: 0;
}
.action-log-disclosure > summary::after {
  color: var(--muted);
  content: "展开 ▾";
  font: 9px/1.2 ui-monospace, monospace;
  letter-spacing: 0;
}
.action-log-disclosure[open] > summary {
  border-bottom: 1px solid var(--line);
}
.action-log-disclosure[open] > summary::after { content: "收起 ▴"; }
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.action-log-disclosure > .timeline {
  margin-top: 0;
  border-top: 0;
}
.street {
  min-width: 0;
  padding: 10px;
  border-left: 1px solid var(--line);
}
.street:first-child { border-left: 0; }
.street.empty-street { opacity: .48; }
.street-name {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
  color: var(--signal);
  font: 600 10px/1.2 ui-monospace, monospace;
  letter-spacing: .12em;
}
.street-actions { min-width: 0; }
.action-line {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
  font-size: 10px;
  line-height: 1.4;
}
.action-line:last-child { margin-bottom: 0; }
.action-line strong { font-weight: 650; }
.action-line.action-summary { color: var(--muted); }
.action-line.empty-action { color: var(--muted); }
.amount { color: var(--signal); font-family: ui-monospace, monospace; }
.rail {
  min-height: 520px;
  border-top: 3px solid var(--signal);
}
.reasoning-panel {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.reasoning-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.reasoning-switches {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}
.reasoning-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.reasoning-switch input { accent-color: var(--signal); }
.reasoning-service {
  margin: 12px 0;
  color: var(--muted);
  font: 10px/1.5 ui-monospace, monospace;
}
.reasoning-service.ready { color: var(--ok); }
.reasoning-service.error { color: var(--danger); }
.reasoning-depth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 10px;
}
.reasoning-depth-option {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  background: rgba(255, 255, 255, .015);
  cursor: pointer;
}
.reasoning-depth-option.active {
  border-color: var(--signal);
  color: var(--signal);
  background: rgba(223, 194, 96, .07);
}
.reasoning-depth-option:disabled {
  cursor: wait;
  opacity: .6;
}
.reasoning-depth-option strong {
  font-size: 10px;
}
.reasoning-depth-option small {
  font-size: 8px;
  color: inherit;
}
.reasoning-help {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.reasoning-result {
  min-height: 72px;
  padding: 12px;
  border-left: 2px solid var(--line);
  background: var(--paper);
  font-size: 12px;
  line-height: 1.55;
}
.reasoning-result.loading { border-left-color: var(--signal); }
.reasoning-result.error { border-left-color: var(--danger); color: var(--danger); }
.reasoning-result.pinned { border-left-color: var(--ok); }
.reasoning-lock-note {
  margin: -2px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ok);
  font: 10px/1.5 ui-monospace, monospace;
}
.reasoning-lock-note.stale { color: var(--signal); }
.reasoning-action {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--signal);
}
.reasoning-meta { color: var(--muted); font: 10px ui-monospace, monospace; }
.reasoning-result ul { margin: 8px 0 0; padding-left: 18px; }
.reasoning-result li { margin: 4px 0; }
.exact-hand-advice {
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--signal) 55%, var(--line));
  background: color-mix(in srgb, var(--signal) 6%, var(--panel));
}
.money-strategy {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 11px;
  border: 1px solid color-mix(in srgb, var(--ok) 55%, var(--line));
  background: color-mix(in srgb, var(--ok) 5%, var(--panel));
}
.money-strategy.blocked {
  border-color: var(--danger);
  color: var(--danger);
}
.money-strategy-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.money-strategy-head > div { display: grid; gap: 2px; }
.money-strategy-head small,
.money-strategy-head > span,
.money-squid,
.money-strategy details small {
  color: var(--muted);
  font: 10px/1.45 ui-monospace, monospace;
}
.money-strategy-head strong {
  color: var(--ok);
  font-size: 17px;
}
.money-sizing {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid color-mix(in srgb, var(--signal) 60%, var(--line));
  background: color-mix(in srgb, var(--signal) 6%, var(--paper));
}
.money-sizing-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
.money-sizing-head > div { display: grid; gap: 2px; }
.money-sizing-head small,
.money-sizing-head > span,
.money-sizing p {
  margin: 0;
  color: var(--muted);
  font: 9px/1.45 ui-monospace, monospace;
}
.money-sizing-head strong { color: var(--signal); font-size: 15px; }
.money-size-candidates {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.money-size-candidate {
  display: grid;
  gap: 2px;
  min-width: 102px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.money-size-candidate small {
  color: var(--muted);
  font: 8px/1.35 ui-monospace, monospace;
}
.money-size-candidate.selected {
  border-color: var(--signal);
  box-shadow: inset 0 -2px 0 var(--signal);
}
.money-size-candidate.ev-best b::after {
  color: var(--ok);
  content: " · EV优选";
  font-size: 8px;
}
.money-size-responses { display: grid; gap: 5px; margin-top: 7px; }
.money-size-response {
  display: grid;
  grid-template-columns: minmax(90px, .7fr) 1fr auto;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}
.money-size-response span,
.money-size-response small { color: var(--muted); }
.money-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.money-policy span {
  padding: 2px 6px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: 10px/1.4 ui-monospace, monospace;
}
.money-policy span.selected {
  border-color: var(--signal);
  box-shadow: inset 0 -2px 0 var(--signal);
}
.money-roll {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .14);
}
.money-roll-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 12px;
  font: 10px/1.4 ui-monospace, monospace;
}
.money-roll-copy span { color: var(--muted); }
.money-roll-copy b,
.money-roll-copy strong { color: var(--signal); }
.money-roll-track {
  position: relative;
  display: flex;
  height: 12px;
  margin-top: 13px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, white);
  background: var(--paper);
}
.money-roll-segment { height: 100%; }
.money-roll-segment.action-fold { background: #596b62; }
.money-roll-segment.action-check { background: #3f8a70; }
.money-roll-segment.action-call { background: #3e83ad; }
.money-roll-segment.action-raise { background: #c99736; }
.money-roll-segment.action-all_in { background: #d75a55; }
.money-roll-segment.selected {
  filter: saturate(1.35) brightness(1.18);
}
.money-roll-marker {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 20px;
  transform: translateX(-1px);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55);
}
.money-roll-marker::after {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transform: translate(-50%, -50%);
}
.money-roll-marker b {
  position: absolute;
  bottom: 17px;
  left: 50%;
  color: var(--ink);
  font: 8px/1 ui-monospace, monospace;
  transform: translateX(-50%);
  white-space: nowrap;
}
.money-roll-marker.edge-left b {
  left: 0;
  transform: none;
}
.money-roll-marker.edge-right b {
  right: 0;
  left: auto;
  transform: none;
}
.money-strategy details {
  border-top: 1px solid var(--line);
  padding-top: 7px;
}
.money-strategy summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
}
.money-candidates {
  display: grid;
  gap: 4px;
  margin: 7px 0;
}
.money-candidate {
  display: grid;
  grid-template-columns: minmax(74px, .35fr) 1fr;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.money-candidate span {
  color: var(--muted);
  font: 9px/1.45 ui-monospace, monospace;
}
.money-caveats {
  color: var(--muted);
  font: 9px/1.45 ui-monospace, monospace;
}
.strategy-mode-note {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
  color: var(--ink);
}
.strategy-mode-note span { color: var(--muted); }
.spot-strategy {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.strategy-spot {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
}
.strategy-spot span {
  color: var(--signal);
  font: 600 9px/1.4 ui-monospace, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.strategy-spot strong {
  font-size: 11px;
  line-height: 1.45;
}
.strategy-summary {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
}
.strategy-overall,
.strategy-legend,
.strategy-bucket-mix {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.strategy-overall { margin-bottom: 8px; }
.strategy-frequency {
  display: inline-flex;
  gap: 3px;
  align-items: baseline;
  padding: 2px 5px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel);
  font: 9px/1.35 ui-monospace, monospace;
}
.strategy-frequency b { color: var(--ink); }
.strategy-frequency.action-fold { border-color: #596b62; }
.strategy-frequency.action-check { border-color: #4f8c76; }
.strategy-frequency.action-call { border-color: #4d88ad; }
.strategy-frequency.action-raise { border-color: #bd913c; }
.strategy-frequency.action-all_in { border-color: #bd5651; }
.strategy-matrix {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.strategy-cell {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  color: color-mix(in srgb, var(--ink) 84%, transparent);
  background: var(--panel);
  font: 600 clamp(6px, .72vw, 9px)/1 ui-monospace, monospace;
  cursor: default;
}
.strategy-cell.action-fold { background: #202b26; color: #76837c; }
.strategy-cell.action-check { background: color-mix(in srgb, #3f8a70 48%, var(--panel)); }
.strategy-cell.action-call { background: color-mix(in srgb, #3e83ad 62%, var(--panel)); }
.strategy-cell.action-raise { background: color-mix(in srgb, #c99736 70%, var(--panel)); color: #101713; }
.strategy-cell.action-all_in { background: color-mix(in srgb, #d75a55 75%, var(--panel)); }
.strategy-cell.mixed::after {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px dashed rgb(255 255 255 / .38);
  pointer-events: none;
}
.strategy-cell.is-hero,
.strategy-bucket.is-hero {
  z-index: 1;
  outline: 2px solid #f6f0d8;
  outline-offset: -2px;
  box-shadow: 0 0 0 2px rgb(0 0 0 / .5), 0 0 14px rgb(211 181 91 / .4);
}
.strategy-legend {
  align-items: center;
  margin-top: 7px;
}
.strategy-hero-key {
  margin-left: auto;
  color: var(--signal);
  font: 9px/1.35 ui-monospace, monospace;
}
.strategy-caveat {
  display: block;
  margin-top: 8px;
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  font-size: 9px;
  line-height: 1.45;
}
.strategy-buckets {
  display: grid;
  gap: 4px;
}
.strategy-bucket {
  display: grid;
  grid-template-columns: minmax(92px, .85fr) 1.15fr;
  gap: 7px;
  align-items: center;
  padding: 7px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.strategy-bucket-copy {
  display: grid;
  gap: 2px;
}
.strategy-bucket-copy strong { font-size: 10px; }
.strategy-bucket-copy small {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}
.reasoning-clear {
  margin-top: 8px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reasoning-buttons {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 8px;
  margin-top: 10px;
}
.reasoning-run,
.reasoning-local-run {
  width: 100%;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 10px;
}
.reasoning-run {
  border: 1px solid var(--signal);
  color: var(--signal);
  background: transparent;
}
.reasoning-local-run {
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, .015);
}
.reasoning-run:disabled,
.reasoning-local-run:disabled {
  cursor: not-allowed;
  opacity: .4;
}
.analysis-route {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
  padding: 7px 8px;
  border-left: 3px solid var(--muted);
  background: rgba(255, 255, 255, .025);
}
.analysis-route.remote {
  border-left-color: var(--signal);
  background: rgba(223, 194, 96, .07);
}
.analysis-route.fallback {
  border-left-color: #d28b4b;
  background: rgba(210, 139, 75, .08);
}
.analysis-route strong {
  font-size: 10px;
  letter-spacing: .04em;
}
.analysis-route span {
  color: var(--muted);
  font-size: 8px;
}
.inference-primary {
  display: grid;
  gap: 6px;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
}
.inference-primary.exact {
  border-left: 3px solid var(--signal);
}
.inference-primary.range {
  border-left: 3px solid var(--ok);
}
.inference-primary > small {
  color: var(--muted);
  font: 9px/1.4 ui-monospace, monospace;
  letter-spacing: .05em;
}
.inference-primary > strong {
  color: var(--text);
  font: 17px/1.35 "Songti SC", serif;
}
.inference-primary ul {
  margin: 0;
  padding-left: 17px;
}
.inference-primary li,
.inference-primary > span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.inference-diagnostics {
  margin-top: 8px;
  color: var(--muted);
  font: 8px/1.5 ui-monospace, monospace;
}
.inference-diagnostics summary {
  cursor: pointer;
  color: var(--muted);
}
.live-exploit-analysis {
  margin: 8px 0;
  padding: 9px;
  border: 1px solid rgba(96, 190, 139, .35);
  background: rgba(96, 190, 139, .06);
}
.live-exploit-analysis ul {
  margin: 5px 0 8px;
  padding-left: 16px;
}
.live-exploit-analysis li {
  margin: 4px 0;
}
.live-exploit-analysis .frequency-shifts {
  display: grid;
  gap: 6px;
  padding-left: 0;
  list-style: none;
}
.frequency-shifts li {
  padding: 7px 8px;
  border-left: 3px solid var(--signal);
  background: rgba(0, 0, 0, .18);
}
.frequency-shifts li > div {
  margin: 3px 0;
  font: 9px/1.5 ui-monospace, monospace;
}
.frequency-shifts b {
  color: var(--signal);
}
.frequency-shifts small {
  color: var(--muted);
}
.strategy-exploit-note {
  margin: 8px 0;
  padding: 6px 8px;
  border: 1px solid rgba(223, 194, 96, .35);
  color: var(--signal);
  background: rgba(223, 194, 96, .07);
  font: 9px/1.5 ui-monospace, monospace;
}
.exploit-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 3px;
}
.exploit-evidence code {
  padding: 2px 4px;
  color: var(--muted);
  background: rgba(0, 0, 0, .24);
  font-size: 7px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-family: "Songti SC", serif;
  font-size: 19px;
}
.section-heading small { color: var(--muted); font: 11px ui-monospace, monospace; }
.hands-list, .opponents-list, .squid-list { display: grid; gap: 1px; background: var(--line); }
.hand-row, .squid-row {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: var(--panel);
}
.hand-row {
  grid-template-columns: minmax(160px, 1.4fr) 1fr 110px 80px;
  cursor: pointer;
}
.hand-row:hover { background: var(--panel-2); }
.hand-row.quality-bad, .hand-row.quality-partial { opacity: .68; }
.quality-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 9px ui-monospace, monospace;
}
.quality-bad .quality-badge, .quality-notice.bad { color: var(--danger); border-color: var(--danger); }
.quality-partial .quality-badge, .quality-notice.partial { color: var(--signal); border-color: var(--signal); }
.quality-good .quality-badge { color: var(--ok); border-color: var(--ok); }
.quality-reason { color: var(--danger); }
.quality-notice {
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  font-size: 12px;
}
.opponent-row {
  background: var(--panel);
  scroll-margin-top: 74px;
}
.opponent-row.hero-row {
  background: linear-gradient(180deg, #14241d 0%, var(--panel) 100%);
  box-shadow: inset 3px 0 0 var(--signal);
}
.opponent-row.hero-row .opponent-summary strong {
  color: var(--signal);
}
.opponent-row.profile-jump {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}
.opponent-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 1.5fr repeat(6, minmax(70px, .7fr));
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.opponent-summary:hover { background: var(--panel-2); }
.metric i { color: var(--muted); font-size: 10px; font-style: normal; }
.profile-detail {
  display: none;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  padding: 22px 18px 26px;
  border-top: 1px solid var(--line);
  background: #101b17;
}
.opponent-row.expanded .profile-detail { display: grid; }
.style-summary { grid-column: span 2; }
.metric-panel { grid-column: span 4; }
.position-panel, .sizing-panel { grid-column: span 2; }
.exploit-panel { grid-column: span 2; }
.style-summary p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.style-name {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font: 600 21px "Songti SC", "STSong", serif;
}
.confidence-chip, .range-confidence {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 10px ui-monospace, monospace;
}
.profile-label {
  margin: 0 0 12px;
  color: var(--signal);
  font: 600 10px ui-monospace, monospace;
  letter-spacing: .12em;
}
.metric-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: -5px 0 12px;
  color: var(--muted);
  font-size: 9px;
}
.metric-legend .metric-legend-high { color: var(--metric-high); }
.metric-legend .metric-legend-low { color: var(--metric-low); }
.profile-metric-groups {
  display: grid;
  gap: 12px;
}
.metric-street-group {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.metric-street-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #101b17;
}
.metric-street-head strong {
  color: var(--signal);
  font: 600 12px ui-monospace, monospace;
}
.metric-street-head span {
  color: var(--muted);
  font-size: 9px;
  text-align: right;
}
.metric-street-empty {
  padding: 13px 10px;
  color: var(--muted);
  font-size: 10px;
}
.profile-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 1px;
  background: var(--line);
}
.profile-metric {
  min-width: 0;
  padding: 10px;
  background: var(--panel);
}
.profile-metric small, .profile-metric span { display: block; color: var(--muted); font-size: 10px; }
.profile-metric strong { display: block; margin: 4px 0; font: 600 18px ui-monospace, monospace; }
.profile-metric.metric-comparison-high > strong,
.profile-metric.metric-comparison-high .metric-direction {
  color: var(--metric-high);
}
.profile-metric.metric-comparison-low > strong,
.profile-metric.metric-comparison-low .metric-direction {
  color: var(--metric-low);
}
.profile-metric.metric-comparison-same > strong,
.profile-metric.metric-comparison-same .metric-direction {
  color: var(--ink);
}
.profile-metric .metric-direction {
  display: inline;
  font-weight: 600;
}
.profile-metric-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 6px;
}
.profile-metric-title small { min-width: 0; }
.profile-metric-title .metric-sample {
  flex: 0 0 auto;
  padding: 2px 4px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.1;
}
.profile-metric-title .metric-sample.confidence-high,
.profile-metric-title .metric-sample.confidence-medium {
  border-color: color-mix(in srgb, var(--ok) 55%, var(--line));
  color: var(--ok);
}
.profile-metric.sample-sparse .metric-sample {
  border-style: dashed;
  color: #b5aaa0;
}
.profile-metric.deviation-slight.metric-comparison-high > strong,
.profile-metric.deviation-slight.metric-comparison-high .metric-direction {
  color: color-mix(in srgb, var(--metric-high) 62%, var(--ink));
}
.profile-metric.deviation-slight.metric-comparison-low > strong,
.profile-metric.deviation-slight.metric-comparison-low .metric-direction {
  color: color-mix(in srgb, var(--metric-low) 62%, var(--ink));
}
.profile-metric.deviation-moderate.deviation-high {
  background: linear-gradient(135deg, rgba(238, 118, 111, .07), transparent 60%), var(--panel);
  box-shadow: inset 2px 0 color-mix(in srgb, var(--metric-high) 72%, transparent);
}
.profile-metric.deviation-moderate.deviation-low {
  background: linear-gradient(135deg, rgba(112, 184, 216, .07), transparent 60%), var(--panel);
  box-shadow: inset 2px 0 color-mix(in srgb, var(--metric-low) 72%, transparent);
}
.profile-metric.deviation-strong.deviation-high {
  background: linear-gradient(135deg, rgba(238, 118, 111, .16), transparent 62%), var(--panel);
  box-shadow: inset 4px 0 var(--metric-high);
}
.profile-metric.deviation-strong.deviation-low {
  background: linear-gradient(135deg, rgba(112, 184, 216, .16), transparent 62%), var(--panel);
  box-shadow: inset 4px 0 var(--metric-low);
}
.profile-metric.deviation-watch .metric-deviation {
  border-style: dashed;
}
.profile-metric .metric-deviation {
  width: fit-content;
  margin-top: 7px;
  padding: 3px 5px;
  border-radius: 2px;
  font-weight: 600;
  line-height: 1.2;
}
.profile-metric .metric-deviation.high {
  background: rgba(238, 118, 111, .13);
  color: var(--metric-high);
}
.profile-metric .metric-deviation.low {
  background: rgba(112, 184, 216, .13);
  color: var(--metric-low);
}
.profile-metric .metric-deviation.watch {
  opacity: .76;
}
.profile-metric .metric-deviation.level-slight {
  background: transparent;
  border: 1px solid currentColor;
  opacity: .72;
}
.profile-metric .metric-deviation.level-moderate {
  font-size: 10px;
}
.profile-metric .metric-deviation.level-strong {
  padding: 4px 6px;
  font-size: 11px;
}
.profile-metric .metric-exploit {
  margin-top: 5px;
  color: var(--ink);
  font-size: 9px;
  line-height: 1.45;
}
.opponent-summary .metric-alert {
  margin: -7px 0;
  padding: 7px 6px;
}
.opponent-summary .metric-alert.deviation-high {
  box-shadow: inset 2px 0 var(--metric-high);
  background: rgba(238, 118, 111, .08);
}
.opponent-summary .metric-alert.deviation-low {
  box-shadow: inset 2px 0 var(--metric-low);
  background: rgba(112, 184, 216, .08);
}
.opponent-summary .metric-alert.deviation-strong.deviation-high {
  box-shadow: inset 4px 0 var(--metric-high);
  background: rgba(238, 118, 111, .14);
}
.opponent-summary .metric-alert.deviation-strong.deviation-low {
  box-shadow: inset 4px 0 var(--metric-low);
  background: rgba(112, 184, 216, .14);
}
.opponent-summary .summary-shift {
  display: block;
  margin-top: 3px;
  color: currentColor;
  font-size: 8px;
  font-weight: 600;
  opacity: .78;
}
.opponent-summary .metric-comparison-high { color: var(--metric-high); }
.opponent-summary .metric-comparison-low { color: var(--metric-low); }
.exploit-signal {
  margin: 0 0 12px;
  padding-left: 9px;
  border-left: 2px solid var(--signal);
  font-size: 11px;
}
.exploit-signal strong, .exploit-signal span, .exploit-signal small { display: block; }
.exploit-signal span { margin: 4px 0; color: var(--ink); line-height: 1.5; }
.exploit-signal small, .profile-caveats { color: var(--muted); }
.profile-caveats { padding-left: 16px; font-size: 10px; line-height: 1.55; }
.profile-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.profile-action-row button {
  min-height: 34px;
  padding: 7px 8px;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}
.profile-revealed-hands { border: 1px solid var(--ok); color: var(--ok); }
.profile-revealed-hands:disabled { opacity: .4; cursor: not-allowed; }
.profile-llm-run {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--signal);
  color: var(--signal);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}
.profile-action-row .profile-llm-run { margin-top: 0; }
.profile-llm-run:disabled { opacity: .45; cursor: wait; }
.profile-llm-result {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.profile-llm-result.loading { border-color: var(--signal); }
.profile-llm-result.error { border-color: var(--danger); color: var(--danger); }
.profile-llm-result p, .profile-llm-result ul, .profile-llm-result ol { margin: 0; }
.profile-llm-result ul, .profile-llm-result ol { padding-left: 17px; }
.profile-llm-result li strong, .profile-llm-result li small { display: block; }
.profile-llm-result li small { color: var(--muted); }
.llm-profile-head { display: flex; justify-content: space-between; color: var(--signal); }
.profile-persistence { color: var(--ok); font: 9px/1.4 ui-monospace, monospace; }
.llm-evidence-details { margin-top: 5px; border-top: 1px solid var(--line); }
.llm-evidence-details summary {
  padding: 8px 0 3px;
  color: var(--signal);
  cursor: pointer;
}
.llm-evidence-details .profile-label { margin-top: 12px; }
.llm-evidence-row, .llm-evidence-case {
  display: grid;
  gap: 2px;
  padding: 6px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.llm-evidence-row { grid-template-columns: minmax(145px, 1fr) 1fr; }
.llm-evidence-row strong, .llm-evidence-case strong { color: var(--ink); }
.llm-evidence-row span, .llm-evidence-case span, .llm-evidence-case small { color: var(--muted); }
.position-line {
  display: grid;
  grid-template-columns: 54px 1fr 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.mode-filter { display: flex; gap: 8px; padding: 14px 0; }
.history-filter { display: flex; gap: 8px; padding: 14px 0 8px; }
.mode-button, .history-filter-button {
  padding: 6px 12px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}
.mode-button.active, .history-filter-button.active { color: var(--paper); border-color: var(--signal); background: var(--signal); }
.history-scope, .opponent-controls, .history-advanced-filter {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font: 10px/1.4 ui-monospace, monospace;
}
.history-scope { justify-content: space-between; }
.history-scope button, .history-advanced-filter button, .load-more {
  padding: 6px 10px;
  border: 1px solid var(--line);
  color: var(--signal);
  background: transparent;
  cursor: pointer;
}
.load-more {
  display: block;
  min-width: 180px;
  margin: 16px auto 0;
}
.load-more:disabled { opacity: .45; cursor: wait; }
.opponent-controls label, .history-advanced-filter label {
  display: grid;
  gap: 4px;
  min-width: min(260px, 100%);
}
.history-advanced-filter label:not(:first-child) { min-width: 130px; }
.opponent-controls input, .opponent-controls select,
.history-advanced-filter input, .history-advanced-filter select {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--panel);
  font: 11px ui-monospace, monospace;
}
.history-advanced-filter button { min-height: 34px; }
.opponent-controls #opponent-count { margin-left: auto; padding-bottom: 8px; }
.empty-result {
  padding: 28px 18px;
  color: var(--muted);
  background: var(--panel);
  text-align: center;
}
.hand-squid {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #101b17;
}
.squid-holders { display: flex; flex-wrap: wrap; gap: 7px; }
.squid-holders span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.squid-holders .has-squid { color: var(--signal); border-color: var(--signal); }
.squid-awards { margin-top: 12px; color: var(--signal); font-size: 12px; }
.hand-squid-summary { margin-top: 7px; color: var(--signal); font-size: 10px; line-height: 1.5; }
.range-inference {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #0f1915;
}
.range-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.range-row { display: grid; gap: 4px; padding: 10px; background: var(--panel); font-size: 10px; }
.range-row strong { color: var(--signal); font-size: 11px; }
.range-row span { color: var(--muted); }
.preflop-range-panel {
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.range-loading, .range-error {
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 11px ui-monospace, monospace;
}
.range-error { border-color: var(--danger); color: var(--danger); }
.range-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.range-panel-head h3 {
  margin: 0;
  font: 600 20px "Songti SC", "STSong", serif;
}
.range-frequency {
  display: grid;
  justify-items: end;
  font-family: ui-monospace, monospace;
}
.range-frequency small, .range-frequency span { color: var(--muted); font-size: 10px; }
.range-frequency strong { color: var(--signal); font-size: 28px; }
.range-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}
.range-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}
.range-controls select {
  min-width: 190px;
  padding: 8px 28px 8px 9px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: var(--panel);
}
.range-confidence { margin-left: auto; }
.range-confidence.medium, .range-confidence.high { color: var(--ok); border-color: var(--ok); }
.range-layout {
  display: grid;
  grid-template-columns: minmax(420px, 760px) minmax(220px, 1fr);
  gap: 24px;
  align-items: start;
}
.range-matrix {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}
.range-cell {
  aspect-ratio: 1;
  min-width: 0;
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--panel);
  font-family: ui-monospace, monospace;
}
.range-cell strong { font-size: clamp(8px, .9vw, 12px); }
.range-cell small { color: var(--muted); font-size: clamp(6px, .65vw, 9px); }
.range-tier-1 { background: color-mix(in srgb, var(--signal) 10%, var(--panel)); }
.range-tier-2 { background: color-mix(in srgb, var(--signal) 25%, var(--panel)); }
.range-tier-3 { background: color-mix(in srgb, var(--signal) 45%, var(--panel)); }
.range-tier-4 { background: color-mix(in srgb, var(--signal) 67%, var(--panel)); color: var(--paper); }
.range-tier-5 { background: color-mix(in srgb, var(--signal) 88%, var(--panel)); color: var(--paper); }
.range-tier-4 small, .range-tier-5 small { color: color-mix(in srgb, var(--paper) 75%, var(--muted)); }
.range-legend {
  display: flex;
  gap: 1px;
  margin-top: 6px;
  color: var(--muted);
  font: 9px ui-monospace, monospace;
}
.range-legend span { flex: 1; padding: 4px 6px; text-align: center; }
.range-evidence {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.range-stat {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 11px ui-monospace, monospace;
}
.range-stat strong { color: var(--ink); }
.range-top-label { margin-top: 18px; }
.range-top-hands { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.range-top-hands span {
  padding: 4px 6px;
  border: 1px solid var(--line);
  color: var(--ink);
  font: 10px ui-monospace, monospace;
}
.range-top-hands b { color: var(--signal); }
.range-evidence > small { display: block; color: var(--muted); line-height: 1.55; }
.inference-backtest {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-left: 2px solid var(--signal);
  background: var(--panel);
  font: 11px ui-monospace, monospace;
}
.inference-backtest small { color: var(--muted); }
.contextual-signals { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.squid-row { grid-template-columns: 1.6fr repeat(3, 1fr); }
.metric { font-family: ui-monospace, monospace; }
.metric small { display: block; color: var(--muted); margin-bottom: 4px; }
.raw-list details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.raw-list summary { cursor: pointer; color: var(--signal); font-family: ui-monospace, monospace; }
pre {
  overflow: auto;
  padding: 16px;
  background: #09100d;
  color: #c9d2cb;
  font: 11px/1.6 ui-monospace, monospace;
}
dialog {
  width: min(900px, 92vw);
  max-height: 88vh;
  overflow: auto;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
}
dialog::backdrop { background: rgb(0 0 0 / .72); }
.dialog-close {
  float: right;
  background: transparent;
  color: var(--signal);
  border: 1px solid var(--line);
  padding: 7px 12px;
}
.opponent-node-dialog {
  width: min(1080px, 94vw);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  overflow: auto;
  border-width: 0 0 0 1px;
  background:
    linear-gradient(145deg, rgba(211, 181, 91, .055), transparent 28%),
    var(--paper);
}
.opponent-node-shell-head {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(14px);
}
.opponent-node-shell-head h2 {
  margin: 0;
  font: 600 clamp(20px, 3vw, 30px)/1.2 "Songti SC", "STSong", serif;
}
.opponent-node-shell-head .dialog-close { float: none; }
.opponent-node-content { padding: clamp(18px, 3vw, 34px); }
.node-range-empty,
.node-range-loading,
.node-range-error {
  min-height: 68vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}
.node-range-loading strong,
.node-range-error strong { color: var(--signal); font-size: 18px; }
.node-range-loading span,
.node-range-error span { max-width: 520px; line-height: 1.6; }
.node-range-retry,
.node-range-refresh,
.node-full-profile {
  padding: 8px 12px;
  border: 1px solid var(--signal);
  color: var(--signal);
  background: transparent;
  cursor: pointer;
}
.node-range-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border-left: 3px solid var(--signal);
  background: var(--panel);
}
.node-range-status.production { border-left-color: var(--ok); }
.node-range-status.heuristic { border-left-color: var(--metric-low); }
.node-range-status.loading { border-left-color: var(--signal); }
.node-range-status.stale { border-left-color: var(--danger); }
.node-range-status > div { display: grid; gap: 3px; }
.node-range-status span { color: var(--muted); font: 9px/1.4 ui-monospace, monospace; }
.node-range-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.node-range-hero h3 {
  margin: 0;
  font: 600 clamp(24px, 4vw, 40px)/1.15 "Songti SC", "STSong", serif;
}
.node-range-hero h3 span { color: var(--muted); font: 12px ui-monospace, monospace; }
.node-range-hero .board { margin-top: 12px; }
.node-player-action-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.node-player-action-line small {
  margin-right: 3px;
  color: var(--muted);
  font: 8px ui-monospace, monospace;
}
.node-player-action-line b {
  padding: 3px 5px;
  border: 1px solid var(--line);
  color: var(--ink);
  font: 8px ui-monospace, monospace;
}
.node-player-action-line b:last-child {
  border-color: color-mix(in srgb, var(--signal) 65%, var(--line));
  color: var(--signal);
}
.node-range-frequency {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 2px;
  font-family: ui-monospace, monospace;
}
.node-range-frequency small,
.node-range-frequency span { color: var(--muted); font-size: 9px; }
.node-range-frequency strong { color: var(--signal); font-size: 34px; }
.node-range-grid {
  display: grid;
  grid-template-columns: minmax(390px, 1.25fr) minmax(280px, .75fr);
  gap: 12px;
}
.node-range-card {
  min-width: 0;
  padding: clamp(14px, 2.2vw, 22px);
  border: 1px solid var(--line);
  background: var(--panel);
}
.node-range-card.response-card,
.node-range-card.evidence-card { grid-column: 1 / -1; }
.node-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.node-card-head small,
.node-card-head > span { color: var(--muted); font: 8px/1.4 ui-monospace, monospace; }
.node-card-head h4 {
  margin: 3px 0 0;
  font: 600 19px/1.2 "Songti SC", "STSong", serif;
}
.node-range-matrix { width: 100%; }
.node-range-matrix .range-cell { position: relative; }
.node-range-matrix .range-cell i {
  position: absolute;
  top: 1px;
  right: 2px;
  color: var(--ok);
  font: 700 7px/1 ui-monospace, monospace;
}
.node-range-matrix .range-cell.node-range-down i { color: var(--metric-low); }
.node-range-matrix .range-cell.node-range-up { box-shadow: inset 0 0 0 1px rgba(104, 194, 154, .55); }
.node-range-matrix .range-cell.node-range-down { box-shadow: inset 0 0 0 1px rgba(112, 184, 216, .5); }
.node-range-matrix .range-cell.outside-core {
  opacity: .32;
  filter: saturate(.45);
}
.node-range-matrix .range-cell.outside-core:hover {
  opacity: .82;
}
.node-top-likely,
.node-top-shifts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.node-top-likely small,
.node-top-shifts small {
  margin-right: 3px;
  color: var(--muted);
  font: 8px ui-monospace, monospace;
}
.node-top-likely span,
.node-top-shifts span {
  padding: 3px 5px;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 8px ui-monospace, monospace;
}
.node-top-likely b { color: var(--signal); }
.node-top-shifts span.up {
  border-color: color-mix(in srgb, var(--metric-high) 52%, var(--line));
  color: var(--metric-high);
}
.node-top-shifts span.down {
  border-color: color-mix(in srgb, var(--metric-low) 52%, var(--line));
  color: var(--metric-low);
}
.node-range-muted {
  padding: 22px 0;
  color: var(--muted);
  line-height: 1.6;
}
.node-composition-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 8px/1.4 ui-monospace, monospace;
}
.node-composition-legend span { display: inline-flex; align-items: center; gap: 5px; }
.node-composition-legend i {
  width: 15px;
  height: 4px;
  background: #607068;
}
.node-composition-legend i.posterior { background: var(--signal); }
.node-composition-legend b { color: #ef9a72; }
.node-composition-legend strong { color: #70b8d8; }
.node-strength-list { display: grid; gap: 15px; }
.node-strength-row { --composition-color: var(--signal); }
.node-strength-row.composition-strong_value,
.node-strength-row.composition-two_pair_plus,
.node-strength-row.composition-straight_plus { --composition-color: #ef806c; }
.node-strength-row.composition-marginal_showdown,
.node-strength-row.composition-pair { --composition-color: #78acd8; }
.node-strength-row.composition-draws,
.node-strength-row.composition-draw { --composition-color: #e2bd58; }
.node-strength-row.composition-air,
.node-strength-row.composition-high_card { --composition-color: #8b9690; }
.node-strength-row.composition-bluff_candidates { --composition-color: #b984d7; }
.node-strength-row > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  font: 10px ui-monospace, monospace;
}
.node-strength-row > div:first-child > strong { color: var(--composition-color); }
.node-strength-values {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
}
.node-strength-values small { color: #7f8b85; font: inherit; }
.node-strength-values em { color: #647169; font-style: normal; }
.node-strength-values b { color: var(--composition-color); }
.node-strength-values i {
  min-width: 64px;
  margin-left: 3px;
  padding: 2px 4px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font: 700 8px/1 ui-monospace, monospace;
  font-style: normal;
  text-align: center;
}
.node-strength-values i.up { color: #ef9a72; background: rgba(239, 154, 114, .08); }
.node-strength-values i.down { color: #70b8d8; background: rgba(112, 184, 216, .08); }
.node-strength-values i.flat { color: var(--muted); opacity: .65; }
.node-strength-track {
  position: relative;
  height: 9px;
  overflow: hidden;
  background: #09100d;
}
.node-strength-track span { position: absolute; inset: 0 auto 0 0; }
.node-strength-track .baseline {
  top: 1px;
  height: 7px;
  background: #526159;
  opacity: .8;
}
.node-strength-track .posterior {
  top: 3px;
  height: 3px;
  background: var(--composition-color);
  box-shadow: 0 0 8px color-mix(in srgb, var(--composition-color) 42%, transparent);
}
.node-history-source {
  display: grid;
  gap: 3px;
  margin-top: 16px;
  padding: 9px 10px;
  border-left: 3px solid var(--line);
  background: #0d1713;
  font: 9px/1.45 ui-monospace, monospace;
}
.node-history-source strong { color: var(--ink); }
.node-history-source span { color: var(--muted); }
.node-history-source.personal { border-color: var(--ok); }
.node-history-source.personal strong { color: var(--ok); }
.node-history-source.pool,
.node-history-source.loading { border-color: var(--signal); }
.node-history-source.pool strong,
.node-history-source.loading strong { color: var(--signal); }
.node-history-source.fallback { border-color: var(--metric-low); }
.node-history-source.fallback strong { color: var(--metric-low); }
.node-composition-note {
  display: block;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 9px/1.5 ui-monospace, monospace;
}
.node-response-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  margin-bottom: 16px;
  background: var(--line);
}
.node-response-action {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
  background: #0e1915;
  font: 10px ui-monospace, monospace;
}
.node-response-action span,
.node-response-action strong { position: relative; z-index: 1; }
.node-response-action strong { color: var(--signal); }
.node-response-action i {
  position: absolute;
  inset: auto auto 0 0;
  height: 2px;
  background: var(--signal);
}
.node-size-curve { border-top: 1px solid var(--line); }
.node-size-head,
.node-size-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(65px, .7fr)) minmax(68px, .6fr);
  gap: 8px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  font: 9px ui-monospace, monospace;
}
.node-size-head { color: var(--muted); }
.node-size-head span { grid-column: 1 / 4; }
.node-size-head small { grid-column: 4 / -1; text-align: right; }
.node-size-row span,
.node-size-row small { color: var(--muted); }
.node-size-row small { text-align: right; }
.node-model-note { display: block; margin-top: 10px; color: var(--muted); }
.node-card-loading {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px dashed color-mix(in srgb, var(--signal) 42%, var(--line));
  color: var(--muted);
  background: color-mix(in srgb, var(--signal) 4%, var(--panel));
}
.node-card-loading i {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid color-mix(in srgb, var(--signal) 28%, var(--line));
  border-top-color: var(--signal);
  border-radius: 50%;
  animation: node-loading-spin .85s linear infinite;
}
.node-card-loading div { display: grid; gap: 4px; }
.node-card-loading strong { color: var(--signal); font-size: 11px; }
.node-card-loading span { font: 9px/1.5 ui-monospace, monospace; }
.node-progressive-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-left: 3px solid var(--danger);
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, var(--panel));
  font-size: 10px;
}
@keyframes node-loading-spin { to { transform: rotate(360deg); } }
.node-evidence-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 14px;
  background: var(--line);
}
.node-evidence-stats > div { padding: 10px; background: #0e1915; }
.node-evidence-stats small { display: block; color: var(--muted); font: 8px ui-monospace, monospace; }
.node-evidence-stats strong { display: block; margin-top: 4px; color: var(--signal); font: 17px ui-monospace, monospace; }
.node-update-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 7px; }
.node-update-list > div { display: grid; gap: 4px; padding: 9px; border: 1px solid var(--line); font-size: 10px; }
.node-update-list > div.applied { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.node-update-list span,
.node-update-list small { color: var(--muted); }
.node-gate-detail { margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.node-gate-detail summary { color: var(--signal); cursor: pointer; }
.node-range-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 1180px) {
  .profile-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .style-summary, .position-panel, .sizing-panel, .exploit-panel { grid-column: span 1; }
  .metric-panel, .preflop-range-panel { grid-column: 1 / -1; }
  .range-layout { grid-template-columns: minmax(380px, 1fr) minmax(200px, .45fr); }
}
@media (max-width: 820px) {
  .masthead { align-items: start; flex-direction: column; gap: 18px; }
  .tabs { overflow-x: auto; padding: 0 12px; }
  .tab, .export { white-space: nowrap; padding-inline: 10px; }
  #view-live.active { grid-template-columns: 1fr; }
  .equity-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hand-row, .squid-row { grid-template-columns: 1fr 1fr; }
  .opponent-summary { grid-template-columns: 1fr 1fr; }
  .profile-detail { grid-template-columns: 1fr; }
  .style-summary, .metric-panel, .position-panel, .sizing-panel, .exploit-panel,
  .preflop-range-panel { grid-column: 1; }
  .range-grid { grid-template-columns: 1fr; }
  .range-panel-head { align-items: start; flex-direction: column; }
  .range-frequency { justify-items: start; }
  .range-controls { align-items: stretch; flex-direction: column; }
  .range-controls select { width: 100%; min-width: 0; }
  .range-confidence { margin-left: 0; align-self: start; }
  .range-layout { grid-template-columns: 1fr; }
  .range-evidence { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .range-cell small { display: none; }
  .opponent-node-dialog { width: 100vw; border-left: 0; }
  .node-range-hero { align-items: start; flex-direction: column; }
  .node-range-frequency { justify-items: start; }
  .node-range-grid { grid-template-columns: 1fr; }
  .node-range-card.response-card,
  .node-range-card.evidence-card { grid-column: 1; }
  .node-range-footer { align-items: stretch; flex-direction: column; }
}
@media (max-width: 560px) {
  .money-sizing-head { align-items: start; flex-direction: column; }
  .money-size-response {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .live-equity-dashboard.is-comparing .live-equity-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .players.table-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    background: var(--line);
  }
  .table-layout .table-center {
    grid-column: 1 / -1;
    grid-row: auto;
    display: grid;
    min-height: 96px;
    background: var(--felt);
  }
  .table-layout .player {
    grid-column: auto;
    grid-row: auto;
  }
  .opponent-node-content { padding: 14px; }
  .opponent-node-shell-head { padding: 14px; }
  .node-range-status { align-items: stretch; flex-direction: column; }
  .node-card-head { flex-direction: column; }
  .node-strength-row > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }
  .node-strength-values { flex-wrap: wrap; }
  .node-evidence-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .node-size-row {
    grid-template-columns: 1fr repeat(3, minmax(48px, .7fr));
  }
  .node-size-row small { grid-column: 1 / -1; text-align: left; }
  .node-size-head { display: flex; justify-content: space-between; }
  .node-size-head span,
  .node-size-head small { grid-column: auto; text-align: left; }
}

.admin-panel { position: relative; display: grid; gap: 18px; }
.admin-stats, .admin-breakdowns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.admin-breakdowns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-stat, .admin-breakdown {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(20, 33, 28, .86);
}
.admin-stat span, .admin-breakdown header small, .admin-expiry, .admin-user small {
  color: var(--muted);
  font-size: 12px;
}
.admin-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}
.admin-stat small { display: block; margin-top: 4px; color: var(--muted); }
.admin-breakdown header, .admin-bar-row > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.admin-bar-row { margin-top: 12px; }
.admin-bar-row i {
  display: block;
  height: 6px;
  margin-top: 6px;
  border-radius: 99px;
  background: var(--ok);
}
.admin-title {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th, .admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.admin-table th { color: var(--muted); font-weight: 500; }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-user { display: grid; }
.admin-user em {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(104, 194, 154, .15);
  color: var(--ok);
  font-style: normal;
  font-size: 11px;
}
.admin-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
}
.admin-badge.pro { background: rgba(211, 181, 91, .16); color: var(--signal); }
.admin-expiry { display: block; margin-top: 4px; }
.admin-upgrade, .plan-actions button, .plan-choice, .plan-duration {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink);
  cursor: pointer;
}
.admin-upgrade { padding: 6px 12px; }
.admin-empty { margin: 0; color: var(--muted); font-size: 13px; }
.plan-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
}
.plan-dialog::backdrop { background: rgba(0, 0, 0, .62); }
.plan-dialog h2 { margin: 0 0 8px; font-size: 22px; }
.plan-user { margin: 0 0 16px; color: var(--muted); }
.plan-choices, .plan-durations, .plan-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-choice, .plan-duration, .plan-actions button { padding: 8px 14px; }
.plan-choice.active, .plan-duration.active {
  border-color: var(--signal);
  color: var(--signal);
}
.plan-custom, .plan-note {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
.plan-custom input, .plan-note textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
}
.plan-preview { min-height: 1.2em; color: var(--muted); font-size: 12px; }
.plan-error { color: var(--danger); font-size: 13px; }
.plan-actions { justify-content: flex-end; margin-top: 8px; }
#plan-save { border-color: transparent; background: var(--signal); color: #1b1608; }
.account-button {
  margin-left: 8px;
  max-width: 14rem;
  overflow: hidden;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.auth-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
}
.auth-dialog::backdrop { background: rgba(0, 0, 0, .62); }
.auth-dialog h2 { margin: 0 0 8px; font-size: 22px; }
.auth-help { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
#auth-fields { display: grid; gap: 12px; }
#auth-fields label, .auth-message {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}
#auth-fields input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.auth-message { margin: 12px 0 0; color: var(--danger); font-size: 13px; }
.auth-message.info { color: var(--ok); }
.auth-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
#auth-switch, #auth-recover, #auth-resend {
  margin-right: auto;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.auth-actions button {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--ink);
  cursor: pointer;
}
#auth-submit, #auth-logout {
  border-color: transparent;
  background: var(--signal);
  color: #1b1608;
}
.plans-lead {
  max-width: 46rem;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.plan-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 220px;
  padding: 22px 20px 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--felt) 55%, transparent), transparent 42%),
    var(--panel);
}
.plan-card h2, .plan-includes h3, .plan-contact h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-weight: 600;
}
.plan-card h2 { font-size: 28px; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 8px 0 0;
}
.plan-price span {
  font-family: "Songti SC", "STSong", serif;
  font-size: 42px;
  letter-spacing: .02em;
}
.plan-price small, .plan-was, .plan-note-line {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.plan-was { margin: 0; text-decoration: line-through; }
.plan-note-line { margin: 0; }
.plan-card-featured {
  border-color: var(--signal);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--signal) 16%, transparent), transparent 48%),
    var(--panel);
}
.plan-includes, .plan-contact {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.plan-includes ul {
  margin: 10px 0 0;
  padding-left: 1.1em;
}
.plan-includes li { line-height: 1.7; }
.plan-includes li + li { margin-top: 8px; }
.about-stage {
  --lime: #b6f27c;
  max-width: 1080px;
  margin: 8px auto 28px;
  padding: 28px 8px 8px;
}
.about-hero { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.about-pill {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--lime) 55%, transparent);
  border-radius: 999px;
  color: var(--lime);
  font: 700 11px/1 ui-monospace, monospace;
  letter-spacing: .16em;
}
.about-hero h2 {
  margin: 0;
  color: var(--lime);
  font-family: "Avenir Next", "Noto Sans SC", sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.08;
}
.about-hero h2 span { color: #f4f7f2; }
.about-hero > p, .about-card > p, .about-report-copy p, .about-facts p, .about-offer p {
  color: #c5cdc6;
  font-size: 15px;
  line-height: 1.65;
}
.about-hero > p { max-width: 38rem; margin: 16px auto 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.about-card, .about-report, .about-facts article, .about-offer {
  border: 1px solid #2a332c;
  border-radius: 18px;
  background: #141a16;
}
.about-card { padding: 14px; }
.about-card h3, .about-report h3, .about-facts h3, .about-offer h3 {
  margin: 16px 4px 0;
  color: #f4f7f2;
  font-family: "Avenir Next", "Noto Sans SC", sans-serif;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -.02em;
}
.about-card > p { margin: 8px 4px 6px; }
.about-visual {
  min-height: 168px;
  padding: 16px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--lime) 12%, transparent), transparent 42%),
    #101510;
}
.about-seats { display: flex; flex-wrap: wrap; gap: 8px; }
.about-seats span, .about-actions li {
  border: 1px solid #314036;
  border-radius: 999px;
  background: #1b2420;
}
.about-seats span { padding: 6px 10px; color: #d7e0d8; font: 600 12px/1 ui-monospace, monospace; }
.about-seats .is-fold, .about-actions li:not(.is-act) b { color: #7e8b82; }
.about-seats .is-act, .about-actions .is-act {
  border-color: color-mix(in srgb, var(--lime) 70%, transparent);
  color: #14210c;
  background: var(--lime);
}
.about-actions { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.about-actions li {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  color: #d7e0d8;
  font-size: 13px;
}
.about-actions .is-act b, .about-actions .is-act span { color: #14210c; }
.about-matrix {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  width: min(100%, 280px);
}
.about-matrix i { height: 16px; border-radius: 3px; background: #243028; }
.about-matrix .hot { background: #ef6d5e; }
.about-matrix .warm { background: #e0a15a; }
.about-matrix .mid { background: #6f8f62; }
.about-visual-stats, .about-visual-quality { display: grid; align-content: center; gap: 10px; }
.about-visual-stats div, .about-visual-quality div {
  display: grid;
  grid-template-columns: 92px 1fr 36px;
  align-items: center;
  gap: 8px;
  color: #d7e0d8;
  font: 600 12px/1 ui-monospace, monospace;
}
.about-visual-stats b, .about-visual-quality b {
  height: 8px;
  border-radius: 99px;
  background: var(--lime);
}
.about-visual-stats .low, .about-visual-quality .mid { background: #e0a15a; }
.about-visual-stats .high, .about-visual-quality .bad { background: #ef6d5e; }
.about-visual-quality p { margin: 4px 0 0; color: #7e8b82; font-size: 12px; }
.about-report {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) 1.3fr;
  gap: 18px;
  margin-top: 14px;
  padding: 22px;
}
.about-report h3 { margin: 12px 0 0; font-size: 34px; }
.about-report-board {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border-radius: 14px;
  background: #101510;
}
.about-bars { display: flex; align-items: end; gap: 5px; height: 180px; }
.about-bars i { flex: 1; border-radius: 4px 4px 0 0; background: var(--lime); }
.about-bars .gold { background: #e0a15a; }
.about-bars .red { background: #ef6d5e; }
.about-report table { width: 100%; border-collapse: collapse; color: #d7e0d8; font-size: 12px; }
.about-report th, .about-report td { padding: 8px 6px; border-bottom: 1px solid #2a332c; text-align: left; }
.about-report th { color: #7e8b82; font-weight: 600; }
.about-report td b { display: block; height: 7px; border-radius: 99px; background: #6f8f62; }
.about-report td b.hot { background: var(--lime); }
.about-report td b.red { background: #ef6d5e; }
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.about-facts article { padding: 18px 18px 8px; }
.about-facts h3 { margin: 0; font-size: 20px; }
.about-offer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 22px;
}
.about-offer h3 { margin: 10px 0 0; font-size: 28px; }
.about-offer a { color: var(--lime); }
.about-offer button {
  flex: none;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--lime);
  color: #14210c;
  font-weight: 700;
  cursor: pointer;
}
.plan-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 22px;
}
.plan-contact p { margin: 8px 0 0; }
.plan-contact-ways p {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr);
  gap: 10px;
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.plan-contact-ways span { color: var(--signal); font-size: 12px; letter-spacing: .08em; }
.plan-contact a { color: var(--ink); }
@media (max-width: 900px) {
  .admin-stats, .admin-breakdowns, .plan-grid, .plan-contact, .about-grid, .about-facts, .about-report, .about-report-board { grid-template-columns: 1fr; }
  .about-offer { align-items: start; flex-direction: column; }
  .about-bars { height: 120px; }
}
