/* Cash-specific controls only. The three original Spins stylesheets are unchanged. */
.range-hu-row,.exact-stack-slider-control,.hierarchy-debug {display:none !important}
.cash-stack {width:180px;min-height:37px;border:1px solid var(--accent);border-radius:5px;background:var(--accent);color:#061013;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800}
.context-facet {width:auto;min-width:125px}
.context-buttons {gap:20px}
.context-buttons button {width:53px;min-width:53px;height:36px;min-height:36px;padding:0;text-align:center}
.cash-dropdown {position:relative;width:125px}
.cash-dropdown-trigger {display:flex;align-items:center;justify-content:space-between;width:100%;height:36px;padding:0 12px;border:1px solid var(--accent);border-radius:5px;background:var(--accent);color:#061013;font-size:11px;font-weight:800;text-align:left;box-shadow:none}
.cash-dropdown-trigger::after {content:'';width:6px;height:6px;margin-left:16px;border-right:1.5px solid #061013;border-bottom:1.5px solid #061013;transform:rotate(45deg);transition:transform 120ms ease}
.cash-dropdown-trigger:hover,.cash-dropdown-trigger[aria-expanded="true"] {border-color:var(--accent);background:var(--accent);color:#061013}
.cash-dropdown-trigger[aria-expanded="true"]::after {transform:rotate(225deg);border-color:#061013}
.cash-dropdown-list {position:absolute;top:calc(100% + 5px);left:0;z-index:60;width:100%;padding:4px;border:1px solid #34383c;border-radius:6px;background:#151719;box-shadow:0 8px 24px rgba(0,0,0,.45)}
.cash-dropdown-option {display:flex;align-items:center;justify-content:space-between;width:100%;min-height:32px;padding:0 8px;border:0;border-radius:3px;background:transparent;color:#e1e1e1;font-size:11px;font-weight:700;text-align:left;box-shadow:none}
.cash-dropdown-option[aria-selected="true"] {color:var(--accent);background:rgba(54,207,218,.08)}
.cash-dropdown-option[aria-selected="true"]::after {content:'✓';font-size:12px}
.cash-dropdown-option:hover,.cash-dropdown-option:focus-visible {background:#292c2f;color:#fff;outline:none}
.cash-dropdown-trigger:focus-visible {outline:2px solid var(--accent);outline-offset:2px}
.context-groups:empty,.continuation-groups:empty {display:none}
body[data-sequence="OPEN RAISE"] .extra-group {order:2}
body[data-sequence="OPEN RAISE"] .context-groups {order:3}
body[data-sequence="SQUEEZE / CALL"] .context-groups,
body[data-sequence="COLD4BET / FARHA"] .context-groups {order:0;margin-top:0;margin-bottom:19px}
.matrix-legend {height:auto;min-height:14px}
.matrix-legend .legend {flex-wrap:wrap;row-gap:7px}
.matrix-legend .legend:has(.legend-item:nth-child(4)) {column-gap:21px}
.matrix-legend .legend:has(.legend-item:nth-child(4)) .legend-item {gap:7px}
.matrix-legend .legend:has(.legend-item:nth-child(4)) .legend-swatch {width:13px;height:13px;flex-shrink:0}
.matrix-legend .legend:has(.legend-item:nth-child(4)) .legend-item strong {font-size:10px}
.matrix-legend .legend:has(.legend-item:nth-child(4)) .legend-percentage {font-size:9px}
.range-footer {gap:8px;flex-wrap:wrap;height:auto}
.cash-notice {margin:0 0 8px;color:#b5b8ba;font-size:11px;line-height:1.5;pointer-events:auto}
.source-dialog {width:min(1000px,95vw);max-height:92vh;padding:14px;background:var(--surface);color:var(--text);border:1px solid var(--border)}
.source-dialog::backdrop {background:rgba(0,0,0,.85)}
.source-dialog header {display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.source-dialog img {display:block;max-width:100%;height:auto;margin:auto}
.source-dialog button {min-height:32px}
@media(max-width:820px) {
 .workspace {padding:20px 12px;overflow-x:visible}
 .poker-study-layout,.study-navigation,.decision-controls,.range-stage,.range-panel,.matrix-scroll,.range-grid,.range-footer {width:100%;min-width:0;max-width:565px}
 .range-grid {height:auto;aspect-ratio:565/447}
 .range-cell {min-height:0;font-size:clamp(8px,2.1vw,12px)}
 .position-buttons,.context-buttons,.extra-buttons {gap:8px}
 .context-groups {gap:12px}
 .matrix-legend .legend {gap:8px;row-gap:7px}
 .stack-group,.sizing-group {margin-top:20px}
}
