:root {
  color-scheme: light;
  --bg: #f6f7f4;
  --panel: #ffffff;
  --panel-2: #f0f4f2;
  --line: #d9ded8;
  --line-strong: #b9c2bd;
  --text: #1b211f;
  --muted: #65706b;
  --soft: #84908a;
  --teal: #0f766e;
  --teal-soft: #d9eeea;
  --ink: #24313a;
  --amber: #b45d16;
  --amber-soft: #f6e3cf;
  --rose: #b42318;
  --rose-soft: #fae2df;
  --green: #218354;
  --shadow: 0 16px 45px rgba(31, 42, 35, 0.12);
  --radius: 8px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.18) 34rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 6px;
  padding: 4px 0 8px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-title {
  font-size: 11px;
  font-weight: 760;
  text-align: center;
}

.brand-subtitle {
  display: none;
}

.panel-label,
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 8px 5px;
  background: transparent;
  color: var(--text);
  text-align: center;
  line-height: 1.12;
  font-weight: 650;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.nav-item:hover {
  background: var(--panel-2);
}

.nav-item.active {
  border-color: var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(27, 33, 31, 0.06);
}

.nav-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  flex: 0 0 auto;
}

.postflop-dot {
  background: var(--teal);
}

.preflop-dot {
  background: var(--amber);
}

.sidebar-panel {
  margin-top: auto;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 7px 5px;
  text-align: center;
}

.endpoint-value {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  max-height: 78px;
  overflow: hidden;
}

.main {
  min-width: 0;
  padding: 22px clamp(18px, 3vw, 36px) 42px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

h2 {
  font-size: 22px;
  line-height: 1.15;
}

h3 {
  font-size: 16px;
}

.topbar-actions,
.toolbar,
.row-actions,
.modal-actions,
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cache-status {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--muted);
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.cache-status[data-state="fresh"] {
  border-color: #bde2db;
  background: var(--teal-soft);
  color: #0b5f58;
}

.cache-status[data-state="cached"],
.cache-status[data-state="saved"] {
  border-color: #ecc7a0;
  background: var(--amber-soft);
  color: #8d430e;
}

.cache-status[data-state="cleared"] {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--soft);
}

.cache-clear-button {
  padding-inline: 10px;
}

.ghost-button,
.primary-button,
.danger-button,
.icon-button,
.chip-button {
  min-height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  padding: 8px 12px;
  font-weight: 650;
}

.primary-button {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.danger-button {
  border-color: #edc5c0;
  background: var(--rose-soft);
  color: var(--rose);
}

.icon-button {
  width: 36px;
  padding: 0;
  display: grid;
  place-items: center;
}

.chip-button {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 12px;
}

.ghost-button:hover,
.chip-button:hover,
.icon-button:hover {
  border-color: var(--line-strong);
  background: var(--panel-2);
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.segmented-control button {
  min-height: 30px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 720;
}

.segmented-control button:last-child {
  border-right: 0;
}

.segmented-control button:hover,
.segmented-control button.active {
  background: var(--teal-soft);
  color: #0b5f58;
}

.content {
  display: grid;
  gap: 14px;
}

.notice {
  border: 1px solid #edc5c0;
  background: var(--rose-soft);
  color: var(--rose);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.hidden {
  display: none !important;
}

.panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(27, 33, 31, 0.045);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-body {
  padding: 14px;
}

.toolbar {
  justify-content: space-between;
}

.search,
.small-input {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  outline: none;
}

.search {
  width: min(380px, 100%);
}

.small-input {
  width: 92px;
}

.search:focus,
.small-input:focus,
.field input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.data-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.data-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 14px 26px rgba(27, 33, 31, 0.075);
}

.card-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.muted {
  color: var(--muted);
}

.soft {
  color: var(--soft);
}

.mono {
  font-family: var(--mono);
}

.truncate {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.description {
  color: var(--muted);
  line-height: 1.45;
  min-height: 2.85em;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 720;
  background: var(--panel-2);
  color: var(--ink);
  border: 1px solid var(--line);
}

.badge.teal {
  background: var(--teal-soft);
  color: #0b5f58;
  border-color: #bde2db;
}

.badge.amber {
  background: var(--amber-soft);
  color: #8d430e;
  border-color: #ecc7a0;
}

.inline-badge {
  min-height: 20px;
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 10px;
  vertical-align: middle;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.meta-item {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
  min-width: 0;
}

.meta-label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.meta-value {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.mtt-info-panel {
  grid-column: 1 / -1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.compact-meta + .mtt-info-panel,
.meta-grid + .mtt-info-panel {
  margin-top: 8px;
}

.mtt-info-panel summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.mtt-info-panel summary strong {
  min-width: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
  text-align: right;
}

.mtt-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 6px;
  padding: 8px;
  background: #fbfcfa;
}

.mtt-info-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 6px 7px;
}

.mtt-info-item span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mtt-info-item strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.mtt-array-details {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 5px;
}

.mtt-array-details summary {
  padding: 0;
  border: 0;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
  justify-content: flex-start;
}

.mtt-array-details code {
  display: block;
  max-height: 120px;
  margin-top: 5px;
  overflow: auto;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.list-table {
  min-width: 980px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: #fbfcfa;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sort-button {
  width: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  text-align: left;
  text-transform: inherit;
  letter-spacing: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.sort-button:hover,
.sort-button.active {
  color: var(--text);
}

.sort-mark {
  min-width: 34px;
  color: var(--teal);
  font-size: 10px;
  text-align: right;
  text-transform: uppercase;
}

.strong-cell {
  font-weight: 740;
  color: var(--text);
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fbfcfa;
}

.active-row,
.active-row:hover {
  background: var(--teal-soft);
}

.click-row {
  cursor: pointer;
}

.crumbs {
  margin-bottom: 2px;
}

.crumbs button {
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 0;
  min-height: 24px;
  font-weight: 720;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.4fr);
  gap: 14px;
}

.preflop-profile-layout {
  grid-template-columns: minmax(352px, 0.9fr) minmax(0, 1.97fr);
  align-items: start;
}

.preflop-profile-summary .panel-head,
.preflop-profile-layout .panel-head {
  padding: 9px 10px;
  gap: 8px;
}

.preflop-profile-summary .panel-body,
.preflop-profile-layout .panel-body {
  padding: 10px;
}

.preflop-profile-summary .compact-meta {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.preflop-profile-layout > .panel {
  min-width: 0;
}

.preflop-profile-layout table {
  min-width: 0;
}

.preflop-profile-layout th,
.preflop-profile-layout td {
  padding: 7px 8px;
}

.preflop-profile-layout .search {
  width: min(260px, 100%);
}

.action-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-chip-row,
.recent-action-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.quick-chip,
.recent-action-chip {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 720;
}

.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quick-chip span {
  min-width: 18px;
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--soft);
  padding: 1px 5px;
  font-family: var(--mono);
  font-size: 10px;
  text-align: center;
}

.quick-chip:hover,
.quick-chip.active,
.recent-action-chip:hover,
.recent-action-chip.active {
  border-color: #bde2db;
  background: var(--teal-soft);
  color: #0b5f58;
}

.recent-actions {
  display: grid;
  gap: 6px;
  margin: 8px 0 10px;
}

.recent-actions:empty {
  display: none;
}

.recent-actions > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.recent-action-chip {
  max-width: 100%;
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-group-row td {
  position: sticky;
  top: 34px;
  z-index: 1;
  background: #eef4f0;
  color: var(--muted);
  padding-block: 6px;
  font-size: 11px;
  letter-spacing: 0;
}

.action-group-row td {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.action-group-row strong {
  color: var(--text);
  font-family: var(--mono);
}

[data-action-kind="raise"] {
  color: var(--teal);
}

[data-action-kind="call"] {
  color: var(--green);
}

[data-action-kind="fold"] {
  color: var(--soft);
}

[data-action-kind="allin"] {
  color: var(--rose);
}

.matrix-panel-actions {
  justify-content: flex-end;
}

.postflop-spot-panel .panel-head {
  padding: 9px 10px;
  gap: 8px;
}

.postflop-spot-panel .panel-body {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.postflop-spot-panel .compact-meta {
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
}

.postflop-vector-grid,
.postflop-matrix-grid {
  display: grid;
  gap: 8px;
  align-items: start;
}

.postflop-vector-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.postflop-matrix-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.postflop-vector-grid.matrix-mode-detailed,
.postflop-matrix-grid.matrix-mode-detailed {
  grid-template-columns: minmax(0, 1fr);
}

.postflop-matrix-grid .compact-matrix-list {
  grid-template-columns: repeat(auto-fit, minmax(214px, 1fr));
}

.postflop-matrix-grid.matrix-mode-detailed .compact-matrix-list {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.postflop-vector-grid .hand-matrix-grid,
.postflop-matrix-grid .hand-matrix-grid {
  grid-template-columns: repeat(13, minmax(18px, 1fr));
}

.postflop-vector-grid.matrix-mode-detailed .hand-matrix-grid,
.postflop-matrix-grid.matrix-mode-detailed .hand-matrix-grid {
  grid-template-columns: repeat(13, minmax(34px, 1fr));
}

.postflop-vector-grid .hand-cell,
.postflop-matrix-grid .hand-cell {
  min-width: 20px;
  min-height: 22px;
}

.postflop-vector-grid.matrix-mode-detailed .hand-cell,
.postflop-matrix-grid.matrix-mode-detailed .hand-cell {
  min-width: 34px;
  min-height: 34px;
}

.postflop-vector-grid .hand-label,
.postflop-matrix-grid .hand-label {
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 7px;
}

.postflop-vector-grid.matrix-mode-detailed .hand-label,
.postflop-matrix-grid.matrix-mode-detailed .hand-label {
  inset: auto;
  top: 4px;
  left: 4px;
  display: block;
  font-size: 11px;
}

.postflop-vector-grid .hand-value,
.postflop-matrix-grid .hand-value {
  display: none;
}

.postflop-vector-grid.matrix-mode-detailed .hand-value,
.postflop-matrix-grid.matrix-mode-detailed .hand-value {
  display: block;
}

.postflop-matrix-grid .panel-head {
  padding: 8px 10px;
}

.postflop-matrix-grid .panel-body {
  padding: 8px;
}

.postflop-combined-strategy-card {
  align-self: start;
}

.postflop-combined-strategy-card .hand-matrix-head {
  justify-content: flex-start;
}

.postflop-action-legend {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 620px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
}

.postflop-action-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.postflop-action-legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--legend-color);
}

.postflop-combined-layout {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  overflow: auto;
}

.hand-matrix-grid.postflop-combined-strategy-grid {
  flex: 0 0 auto;
  grid-template-columns: repeat(13, 44px);
}

.hand-cell.postflop-combined-strategy-cell {
  min-width: 44px;
  min-height: 44px;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) var(--reach-cut, 100%),
      rgba(255, 255, 255, 0.72) var(--reach-cut, 100%),
      rgba(255, 255, 255, 0.72) 100%
    ),
    var(--strategy-bg, #fff);
}

.hand-cell.postflop-combined-strategy-cell.pair,
.hand-cell.postflop-combined-strategy-cell.suited,
.hand-cell.postflop-combined-strategy-cell.offsuit {
  box-shadow: none;
}

.postflop-combined-strategy-cell .hand-label {
  top: 3px;
  left: 3px;
  color: #06110e;
  font-size: 10px;
  font-weight: 850;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.postflop-combined-strategy-cell .hand-value {
  right: 3px;
  bottom: 3px;
  color: #06110e;
  font-size: 11px;
  font-weight: 850;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.postflop-combined-layout .matrix-detail-panel {
  flex: 0 0 430px;
  align-self: flex-start;
  position: sticky;
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.matrix-detail-hand-table {
  grid-column: 1 / -1;
  display: grid;
  gap: 3px;
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 4px;
}

.matrix-detail-hand-row {
  display: grid;
  grid-template-columns: 56px minmax(150px, 1fr) 52px 52px 64px;
  gap: 6px;
  align-items: center;
  min-width: 390px;
  padding: 4px 5px;
  border-radius: 4px;
  color: var(--soft);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.15;
}

.matrix-detail-hand-row:nth-child(even) {
  background: #f7faf8;
}

.matrix-detail-hand-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef6f3;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.matrix-detail-hand-row strong,
.matrix-detail-hand-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matrix-detail-hand-row strong {
  color: var(--text);
}

.matrix-detail-hand-policy {
  display: flex;
  min-width: 0;
}

.policy-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.policy-bar-track {
  flex: 1 1 auto;
  display: flex;
  height: 9px;
  min-width: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.policy-bar-seg {
  width: var(--seg-w, 0%);
  min-width: 2px;
  flex-shrink: 1;
  background: var(--seg-color, var(--teal));
}

.policy-bar-lead {
  flex: 0 0 auto;
  max-width: 104px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-bar-empty {
  color: var(--muted);
}

.matrix-detail-policy {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.matrix-detail-policy > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.matrix-detail-policy .policy-bar-track {
  height: 12px;
}

.matrix-detail-policy .policy-bar-lead {
  max-width: 160px;
  font-size: 10px;
}

.profile-title {
  max-width: min(860px, 72vw);
  font-family: var(--mono);
  font-size: 17px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.json-preview {
  margin: 0;
  white-space: pre-wrap;
  overflow: auto;
  max-height: 360px;
  background: #18211f;
  color: #e8f1ed;
  border-radius: var(--radius);
  padding: 12px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.55;
}

.vector-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.vector-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.shape {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
}

.vector-detail-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(68px, 1fr));
  gap: 5px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfa;
}

.vector-detail-panel[data-pinned="true"] {
  background: var(--teal-soft);
  border-color: #bde2db;
}

.vector-detail-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 4px 5px;
}

.vector-detail-item span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.vector-detail-item strong {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.stat {
  background: var(--panel-2);
  border-radius: var(--radius);
  padding: 8px;
  min-width: 0;
}

.stat-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-value {
  margin-top: 3px;
  font-family: var(--mono);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.spark {
  height: 42px;
  display: flex;
  align-items: end;
  gap: 2px;
  padding: 5px;
  background: linear-gradient(180deg, #fbfcfa, #eef3ef);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.spark span {
  flex: 1 1 0;
  height: var(--h);
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--spark-color, var(--teal));
}

.spark span[data-vector-detail],
.top-value-row[data-vector-detail] {
  cursor: pointer;
}

.spark span.vector-detail-active {
  outline: 2px solid rgba(27, 33, 31, 0.72);
  outline-offset: 1px;
}

.top-values {
  display: grid;
  gap: 5px;
}

.top-value-row {
  display: grid;
  grid-template-columns: minmax(62px, 0.9fr) minmax(90px, 1fr) 72px;
  gap: 8px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  border-radius: 6px;
  padding: 2px 3px;
}

.top-value-row:hover,
.top-value-row.vector-detail-active {
  background: var(--teal-soft);
}

.bar-track {
  height: 8px;
  border-radius: 99px;
  background: var(--panel-2);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: var(--w);
  background: var(--teal);
}

.matrix-list {
  display: grid;
  gap: 10px;
}

.compact-matrix-panel .panel-head {
  padding: 10px;
}

.compact-matrix-list {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 8px;
}

.compact-vector-block {
  padding: 8px;
  gap: 7px;
}

.compact-vector-block .vector-detail-panel {
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  gap: 4px;
  padding: 5px;
}

.compact-vector-block .vector-detail-item {
  padding: 3px 4px;
}

.compact-vector-block .vector-detail-item span {
  font-size: 7px;
}

.compact-vector-block .vector-detail-item strong {
  font-size: 9px;
}

.compact-vector-block .vector-head {
  gap: 6px;
}

.compact-vector-block .vector-head strong {
  font-size: 12px;
}

.compact-vector-block .shape {
  font-size: 10px;
}

.compact-vector-block .stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.compact-vector-block .stat {
  padding: 5px;
}

.compact-vector-block .stat-label {
  font-size: 9px;
}

.compact-vector-block .stat-value {
  font-size: 10px;
}

.compact-vector-block .spark {
  height: 26px;
  padding: 3px;
}

.compact-vector-block .hand-matrix-head {
  padding: 6px;
}

.compact-vector-block .hand-matrix-head h3 {
  font-size: 12px;
}

.compact-vector-block .hand-matrix-head .muted,
.compact-vector-block .matrix-scale {
  font-size: 10px;
}

.compact-vector-block .hand-matrix-grid {
  grid-template-columns: repeat(13, 22px);
  justify-content: start;
}

.compact-vector-block .hand-cell {
  min-width: 22px;
  min-height: 22px;
}

.compact-vector-block .hand-label {
  top: 3px;
  left: 3px;
  font-size: 8px;
}

.compact-vector-block .hand-value {
  right: 3px;
  bottom: 3px;
  font-size: 8px;
}

.compact-vector-block .top-values {
  display: none;
}

.compact-vector-block.plo-vector-block .plo-list-head {
  padding: 6px 7px;
}

.compact-vector-block.plo-vector-block .plo-table {
  min-width: 420px;
}

.compact-vector-block.plo-vector-block .plo-table th,
.compact-vector-block.plo-vector-block .plo-table td {
  padding: 5px 6px;
  font-size: 10px;
}

.postflop-vector-grid.matrix-mode-detailed .compact-vector-block .top-values,
.postflop-matrix-grid.matrix-mode-detailed .compact-vector-block .top-values {
  display: grid;
}

.profile-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-card-meta div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 8px;
  min-width: 0;
}

.profile-card-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-card-meta strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.small-line {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.range-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 12px;
  align-items: start;
}

.plo-range-container,
.plo-range-summary,
.plo-vector-summary {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.plo-output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  align-items: start;
}

.plo-grid-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.plo-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.plo-grid-head h3 {
  font-size: 13px;
}

.plo-suit-filter {
  flex: 0 0 auto;
  overflow: visible;
}

.plo-suit-filter button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.plo-suit-filter button::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--plo-filter-color, var(--muted));
  content: "";
}

.plo-suit-filter button[data-tooltip]::after {
  position: absolute;
  z-index: 40;
  right: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: min(260px, 70vw);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #17201a;
  color: #fff;
  box-shadow: var(--shadow);
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  padding: 7px 9px;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: normal;
}

.plo-suit-filter button[data-tooltip]:hover::after,
.plo-suit-filter button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.plo-grid-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.plo-grid-crumbs button {
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.plo-grid-crumbs i {
  color: var(--muted);
  font-style: normal;
}

.plo-grid-matrix {
  display: grid;
  grid-template-columns: repeat(13, minmax(34px, 1fr));
  gap: 3px;
  min-width: 560px;
  padding: 0 10px 10px;
}

.plo-grid-cell {
  position: relative;
  display: grid;
  align-content: space-between;
  min-width: 34px;
  aspect-ratio: 1;
  border: 1px solid rgba(36, 43, 38, 0.14);
  border-radius: 4px;
  background: var(--plo-cell-bg);
  color: #18201b;
  cursor: pointer;
  padding: 4px;
  overflow: hidden;
}

.plo-grid-cell::before {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: var(--plo-cell-fill-height, 0%);
  left: 0;
  height: 2px;
  background: var(--plo-cell-strip, var(--plo-cell-accent, var(--line-strong)));
  content: "";
  opacity: 0.58;
  transform: translateY(1px);
}

.plo-grid-cell::after {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--plo-cell-fill-height, 0%);
  background: var(--plo-cell-strip, var(--plo-cell-accent, transparent));
  content: "";
  opacity: 0.5;
  pointer-events: none;
}

.plo-grid-cell:hover,
.plo-grid-cell:focus,
.plo-grid-cell.detail-active {
  outline: 2px solid color-mix(in srgb, var(--plo-cell-accent, #0f766e) 55%, transparent);
  outline-offset: 1px;
}

.plo-grid-cell.active {
  box-shadow: inset 0 0 0 2px var(--plo-cell-accent, rgba(17, 90, 62, 0.62));
}

.plo-grid-cell.empty {
  color: rgba(24, 32, 27, 0.48);
}

.plo-grid-cell.empty::before {
  opacity: 0;
}

.plo-grid-cell.empty::after {
  opacity: 0;
}

.plo-grid-cell.disabled {
  cursor: default;
  opacity: 0.34;
}

.plo-grid-label,
.plo-grid-value {
  position: relative;
  z-index: 2;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.32);
}

.plo-grid-label {
  font-size: 10px;
  font-weight: 780;
}

.plo-grid-value {
  justify-self: end;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 760;
}

.plo-suit-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
}

.plo-suit-tile {
  display: grid;
  gap: 5px;
  min-height: 86px;
  border: 1px solid rgba(36, 43, 38, 0.13);
  border-top: 4px solid var(--plo-cell-accent, var(--line-strong));
  border-radius: var(--radius);
  background: var(--plo-cell-bg);
  padding: 10px;
}

.plo-suit-tile strong {
  font-size: 13px;
  text-transform: uppercase;
}

.plo-suit-tile span {
  font-weight: 760;
}

.plo-suit-tile small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.plo-top-list,
.plo-breakdown {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.plo-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.plo-list-head h3 {
  font-size: 13px;
}

.plo-list-head span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 740;
}

.plo-table-wrap {
  border: 0;
  border-radius: 0;
}

.plo-table {
  min-width: 560px;
}

.plo-table th,
.plo-table td {
  padding: 7px 8px;
  font-size: 12px;
}

.plo-table th {
  font-size: 10px;
}

.plo-strategy-panel .panel-body {
  padding: 10px;
}

.plo-strategy-table {
  min-width: 920px;
}

.plo-strategy-table .policy-bar {
  min-width: 160px;
}

.compact-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.compact-meta div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  padding: 6px 7px;
}

.compact-meta span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compact-meta strong {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.compact-range-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.compact-range-matrix-grid.matrix-mode-detailed {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.compact-range-matrix-grid .hand-matrix-head {
  padding: 6px 7px;
  gap: 6px;
}

.compact-range-matrix-grid .hand-matrix-head h3 {
  font-size: 12px;
}

.compact-range-matrix-grid .hand-matrix-head .muted {
  display: none;
}

.compact-range-matrix-grid.matrix-mode-detailed .hand-matrix-head .muted {
  display: block;
  font-size: 11px;
}

.compact-range-matrix-grid .matrix-scale {
  font-size: 10px;
}

.compact-range-matrix-grid .hand-matrix-grid {
  grid-template-columns: repeat(13, minmax(18px, 1fr));
}

.compact-range-matrix-grid.matrix-mode-detailed .hand-matrix-grid {
  grid-template-columns: repeat(13, minmax(34px, 1fr));
}

.compact-range-matrix-grid .hand-cell {
  min-width: 20px;
  min-height: 22px;
}

.compact-range-matrix-grid.matrix-mode-detailed .hand-cell {
  min-width: 34px;
  min-height: 34px;
}

.compact-range-matrix-grid .hand-label {
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 7px;
  font-weight: 760;
}

.compact-range-matrix-grid.matrix-mode-detailed .hand-label {
  inset: auto;
  top: 4px;
  left: 4px;
  display: block;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
}

.compact-range-matrix-grid .hand-value {
  display: none;
}

.compact-range-matrix-grid.matrix-mode-detailed .hand-value {
  display: block;
  left: auto;
  right: 4px;
  bottom: 4px;
  max-width: calc(100% - 8px);
  text-align: right;
  font-size: 10px;
}

.hand-matrix-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.vector-block .hand-matrix-card {
  box-shadow: none;
}

.hand-matrix-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.hand-matrix-head h3 {
  font-size: 14px;
}

.matrix-scale {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.hand-matrix-grid {
  display: grid;
  grid-template-columns: repeat(13, minmax(34px, 1fr));
  gap: 1px;
  background: var(--line);
  padding: 1px;
  overflow: auto;
}

.hand-cell {
  aspect-ratio: 1;
  min-width: 34px;
  min-height: 34px;
  position: relative;
  background:
    linear-gradient(0deg, var(--matrix-bg), var(--matrix-bg)),
    #fff;
  color: #17211d;
  overflow: hidden;
}

.hand-cell[data-matrix-detail] {
  cursor: pointer;
}

.hand-cell.detail-active {
  outline: 2px solid rgba(27, 33, 31, 0.78);
  outline-offset: -2px;
  z-index: 2;
}

.hand-cell.pair {
  box-shadow: inset 0 0 0 999px rgba(255, 246, 190, 0.16);
}

.hand-cell.suited {
  box-shadow: inset 0 0 0 999px rgba(212, 242, 231, 0.14);
}

.hand-cell.offsuit {
  box-shadow: inset 0 0 0 999px rgba(249, 224, 217, 0.13);
}

.hand-cell.missing {
  background:
    repeating-linear-gradient(135deg, #f8faf7 0, #f8faf7 5px, #eef2ee 5px, #eef2ee 10px);
  color: var(--soft);
}

.hand-label,
.hand-value {
  position: absolute;
  font-family: var(--mono);
  line-height: 1;
}

.hand-label {
  top: 4px;
  left: 4px;
  font-size: 11px;
  font-weight: 800;
}

.hand-value {
  right: 4px;
  bottom: 4px;
  font-size: 10px;
  font-weight: 750;
  max-width: calc(100% - 8px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.range-matrix-grid.matrix-mode-detailed {
  grid-template-columns: minmax(0, 1fr);
}

.hand-matrix-grid.preflop-detailed-range-grid {
  grid-template-columns: repeat(13, 52px);
  flex: 0 0 auto;
}

.compact-range-matrix-grid.matrix-mode-detailed .hand-matrix-grid.preflop-detailed-range-grid {
  grid-template-columns: repeat(13, 52px);
}

.hand-cell.preflop-detailed-range-cell {
  min-width: 52px;
  min-height: 50px;
  background: #fff;
  isolation: isolate;
}

.compact-range-matrix-grid.matrix-mode-detailed .hand-cell.preflop-detailed-range-cell {
  min-width: 52px;
  min-height: 50px;
}

.preflop-detailed-range-layout {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  overflow: auto;
}

.preflop-detailed-range-layout .matrix-detail-panel {
  flex: 0 0 170px;
  align-self: flex-start;
  position: sticky;
  right: 0;
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hand-cell.preflop-detailed-range-cell::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--weight-fill, 0%);
  background: var(--matrix-bg, transparent);
  z-index: 0;
}

.hand-cell.preflop-detailed-range-cell.pair,
.hand-cell.preflop-detailed-range-cell.suited,
.hand-cell.preflop-detailed-range-cell.offsuit {
  box-shadow: none;
}

.hand-cell.preflop-detailed-range-cell.missing::before {
  display: none;
}

.preflop-detailed-range-cell .hand-label {
  z-index: 1;
  top: 3px;
  left: 3px;
  color: #0c1714;
  font-size: 10px;
  font-weight: 850;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.compact-range-matrix-grid.matrix-mode-detailed .preflop-detailed-range-cell .hand-label {
  top: 3px;
  left: 3px;
  font-size: 10px;
}

.range-cell-metrics {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  z-index: 1;
  display: grid;
  gap: 2px;
  color: #06110e;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.95), 0 1px 0 rgba(255, 255, 255, 0.8);
}

.range-cell-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}

.range-cell-metric i {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-shadow: none;
}

.matrix-detail-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 5px;
  padding: 7px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.matrix-detail-panel[data-pinned="true"] {
  background: var(--teal-soft);
}

.matrix-detail-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 5px 6px;
}

.matrix-detail-item span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.matrix-detail-item strong {
  display: block;
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matrix-detail-sources {
  grid-column: 1 / -1;
}

.empty-state,
.loading-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.loading-state {
  display: grid;
  place-items: center;
  min-height: 180px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 29, 27, 0.42);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 20;
}

.modal {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 16px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 650;
}

.field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 10px;
  color: var(--text);
}

.modal-actions {
  justify-content: space-between;
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar-panel {
    margin-top: 0;
  }

  .split,
  .grid.two,
  .grid.three,
  .range-matrix-grid,
  .compact-range-matrix-grid,
  .postflop-vector-grid,
  .postflop-matrix-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .main {
    padding-inline: 12px;
  }

  .nav {
    grid-template-columns: 1fr;
  }

  .panel-head,
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hand-matrix-grid {
    grid-template-columns: repeat(13, minmax(30px, 1fr));
  }

  .hand-cell {
    min-width: 30px;
    min-height: 30px;
  }

  .hand-label {
    font-size: 10px;
  }

  .hand-value {
    font-size: 9px;
  }
}
