.holdem-page { max-width: 1160px; margin: 0 auto; padding: 34px 24px 48px; }
.lab-header { margin: 5px 0 28px; }
.eyebrow { font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--blue-dark); font-weight: 700; margin: 0 0 8px; }
.lab-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.035em; line-height: 1.2; margin: 0 0 10px; }
.lab-header h1 span { font-size: .48em; color: var(--muted); letter-spacing: 0; white-space: nowrap; font-weight: 500; }
.lab-header > p:last-child { color: var(--muted); margin: 0; }
.lab-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.lab-inputs, .lab-results { display: grid; gap: 18px; min-width: 0; }
.lab-panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 0; min-width: 0; }
.lab-panel h2 { display: block; color: var(--text); font-size: 1rem; text-transform: none; letter-spacing: -.01em; border: 0; padding: 0; margin: 0 0 16px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.panel-heading h2 { margin: 0; }
.pill { background: var(--blue-soft); color: var(--blue-dark); border-radius: 999px; padding: 3px 8px; font-size: .65rem; font-weight: 600; white-space: nowrap; }
.lab-panel h3 { margin: 0 0 8px; font-size: .8rem; font-weight: 600; }
.street-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; background: #edf3f8; border-radius: 9px; padding: 4px; margin-bottom: 22px; }
.street-tabs button { border: 0; border-radius: 6px; min-height: 40px; padding: 7px 2px; color: var(--muted); background: none; font: 600 .8rem var(--sans); cursor: pointer; }
.street-tabs button[aria-pressed='true'] { color: var(--blue-dark); background: #fff; box-shadow: 0 1px 4px #1d29391a; }
.hole-groups { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 22px; }
.slots { display: grid; gap: 8px; }
.hole-slots { grid-template-columns: repeat(2, 58px); }
.community-slots { grid-template-columns: repeat(5, minmax(0, 58px)); min-height: 10px; margin-bottom: 16px; }
.slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 3 / 4; border: 1px solid #ccd9e6; border-radius: 8px; background: #fff; font: 700 1.5rem var(--sans); color: var(--text); cursor: pointer; box-shadow: 0 3px 6px -4px #445b7880; }
.slot.red { color: #c34647; }
.slot small { font-size: .62rem; font-weight: 500; color: var(--muted); }
.slot.empty { border-style: dashed; background: #f8fbfe; color: #a5b6c8; font-size: 1.2rem; box-shadow: none; }
.slot[aria-pressed='true'] { border: 2px solid var(--blue); box-shadow: 0 0 0 3px #2f86d414; }
.board-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.board-heading h3 { margin: 0; }
.board-heading span { color: var(--muted); font-size: .7rem; }
.picker-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.picker-heading p { font-size: .78rem; font-weight: 600; color: var(--blue-dark); margin: 0; }
.text-button { background: none; border: 0; color: var(--muted); font: .7rem var(--sans); cursor: pointer; padding: 8px 0; }
.text-button:hover { color: var(--blue-dark); }
.deck { display: grid; gap: 5px; margin-top: 8px; }
.deck-row { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; }
.deck-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid var(--line); border-radius: 5px; padding: 4px 0; min-height: 42px; background: #fff; color: var(--text); font: 600 .85rem var(--sans); cursor: pointer; }
.deck-card span { font-size: .72rem; line-height: 1; }
.deck-card.red { color: #c34647; }
.deck-card:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-soft); }
.deck-card:disabled { opacity: .22; cursor: default; background: #f1f4f7; }
.lab-panel :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 3px; }
.input-note, .source-note { color: var(--muted); font-size: .73rem; line-height: 1.6; margin: 10px 0 0; }
.input-note code { font-size: .72rem; color: var(--text); }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 16px; margin-top: 14px; border-top: 1px solid var(--line); }
.examples > span { font-size: .72rem; color: var(--muted); margin-right: 4px; }
.examples button { font: .72rem var(--sans); border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--blue-dark); padding: 6px 10px; cursor: pointer; }
.lab-panel label { display: block; font-size: .73rem; font-weight: 600; margin: 0 0 6px; }
.lab-panel :is(select, input, textarea) { width: 100%; min-width: 0; border: 1px solid #ccd9e6; border-radius: 8px; background: #fff; padding: 10px; color: var(--text); font: .8rem var(--sans); min-height: 40px; }
.lab-panel textarea { resize: vertical; line-height: 1.5; }
#range-controls { margin-top: 14px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.calculation-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.calculation-controls > div { flex: 1; min-width: 150px; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; border: 1px solid var(--blue-dark); border-radius: 8px; background: var(--blue-dark); color: #fff; padding: 10px 14px; font: 600 .8rem var(--sans); text-decoration: none; cursor: pointer; }
.primary-button:hover { background: #195c97; color: #fff; text-decoration: none; }
.equity-panel { border-top: 3px solid var(--blue); }
.equity-number { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
#equity-value { font-size: 3.3rem; line-height: 1.15; font-weight: 700; letter-spacing: -.06em; color: var(--blue-dark); }
.equity-unit { color: var(--muted); font-size: .75rem; }
.equity-track { display: flex; height: 9px; border-radius: 999px; overflow: hidden; background: #e8edf3; }
#win-bar { background: var(--blue); width: 0; }
#tie-bar { background: #e5b45c; width: 0; }
.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 18px; gap: 12px; font-size: .75rem; color: var(--muted); }
.outcome-grid strong { display: block; font-size: 1.1rem; font-weight: 600; color: var(--text); margin-top: 3px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; vertical-align: 1px; margin-right: 5px; }
.win-dot { background: var(--blue); }.tie-dot { background: #e5b45c; }.lose-dot { background: #b4c1cf; }
.result-note { margin: 0; font-size: .75rem; color: var(--muted); min-height: 2.8em; }
.result-note.error { color: #a73636; }
.progress { height: 3px; background: #edf3f8; margin: 0 0 12px; }
.progress > span { display: block; height: 100%; background: var(--blue); width: 0; }
.odds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 16px; margin-top: 14px; border-top: 1px solid var(--line); }
.odds-grid span { display: block; font-size: .7rem; color: var(--muted); }
.odds-grid strong { display: block; margin-top: 3px; font-size: 1.1rem; font-weight: 600; }
.strategy-hand { font-size: 1.1rem; font-weight: 700; margin: 12px 0; }
.strategy-bars { display: grid; gap: 9px; }
.strategy-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 43px; gap: 8px; align-items: center; font-size: .73rem; }
.strategy-track { height: 7px; background: #edf2f7; border-radius: 999px; overflow: hidden; }
.strategy-track span { display: block; height: 100%; border-radius: 999px; }
.strategy-row b { text-align: right; font-size: .73rem; font-weight: 600; }
.lab-panel summary { cursor: pointer; color: var(--blue-dark); font-size: .8rem; font-weight: 600; }
.range-chart { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.range-matrix { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 2px; margin-top: 10px; }
.range-matrix button { padding: 5px 0; border: 0; border-radius: 2px; font: 600 .6rem var(--sans); min-width: 0; min-height: 26px; color: #1d2939; cursor: pointer; }
.range-matrix button[aria-pressed='true'] { outline: 2px solid #1d2939; outline-offset: -2px; }
.methodology { margin-top: 24px; }
.method-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.method-grid p { font-size: .77rem; color: var(--muted); line-height: 1.6; margin: 8px 0 0; }
@media (max-width: 850px) { .lab-layout { grid-template-columns: minmax(0, 1fr); } .method-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
@media (max-width: 480px) {
  .holdem-page { padding: 24px 12px 32px; }
  .lab-panel { padding: 16px; }
  .lab-header h1 span { display: block; margin-top: 7px; font-size: .5em; }
  .deck-row { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .deck-card { min-height: 44px; }
  .hole-slots { grid-template-columns: repeat(2, 52px); }
  .community-slots { gap: 6px; }
  .slot { font-size: 1.25rem; }
  .picker-heading { align-items: baseline; }
  .field-grid { gap: 10px; }
  .strategy-row { grid-template-columns: 100px minmax(0, 1fr) 40px; }
  .range-matrix button { font-size: .5rem; min-height: 25px; }
}
[hidden] { display: none !important; }

@media (max-width: 480px) {
  .street-tabs button, .lab-panel :is(select, input), .primary-button { min-height: 44px; }
}
