#seat-action-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fixed-action-bar {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 26rem) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-top: 1px solid #3b4d3f;
  background: #1c2a22;
}
.fixed-actor { display: grid; line-height: 1.2; }
.fixed-actor small { color: var(--muted); font-size: .68rem; }
.fixed-actor strong { padding-top: 2px; font-size: .84rem; }
#fixed-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
#fixed-actions .move-button { min-height: 35px; padding-inline: 4px; white-space: normal; }
#fixed-actions[data-mode="sizes"] { grid-template-columns: auto minmax(0,1fr); }
#fixed-actions .move-sizes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); }
#batch-controls { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 3px 9px; }
.batch-move {
  padding: 3px 2px; min-height: 30px; border: 0; background: transparent;
  color: #c5dba9; font-size: .76rem; font-weight: 600; line-height: 1.3;
}
.batch-move:hover { text-decoration: underline; text-underline-offset: 3px; }
.seat-moves {
  position: absolute; left: 8px; top: 8px;
  display: flex; align-items: stretch; gap: 3px; width: max-content; max-width: calc(100% - 8px);
  padding: 4px; border: 1px solid #677e69; border-radius: 10px;
  background: #15231d; box-shadow: 0 4px 12px #08140ea6; pointer-events: auto;
}
.seat-moves::before {
  position: absolute; content: ''; width: 6px; height: 6px; background: #15231d;
  border: solid #677e69; border-width: 1px 0 0 1px; display: none; pointer-events: none;
}
.seat-moves[data-pointer="top"]::before { display: block; left: var(--tip); top: -4px; transform: translateX(-50%) rotate(45deg); }
.seat-moves[data-pointer="bottom"]::before { display: block; left: var(--tip); bottom: -4px; transform: translateX(-50%) rotate(225deg); }
.seat-moves[data-pointer="left"]::before { display: block; top: var(--tip); left: -4px; transform: translateY(-50%) rotate(-45deg); }
.seat-moves[data-pointer="right"]::before { display: block; top: var(--tip); right: -4px; transform: translateY(-50%) rotate(135deg); }
.move-button, .move-back {
  min-height: 38px; padding: 3px 10px; border: 1px solid #405747; border-radius: 6px;
  background: #293b31; color: #eff5e9; font-size: .83rem; font-weight: 650; white-space: nowrap;
}
.move-button:hover, .move-back:hover { background: #3c5143; }
.move-button[data-action="fold"] { background: #1a2a22; color: #c1cec3; }
.move-raise { color: #e2f5bb; border-color: #819a63; background: #304233; }
.choosing-size { display: grid; grid-template-columns: auto 1fr; width: 245px; padding: 4px; }
.move-heading { display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.move-heading strong { color: var(--lime); padding-top: 2px; font-size: .78rem; }
.move-back { min-height: 27px; padding: 2px 4px; border: 0; background: transparent; color: var(--muted); font-size: .75rem; }
.move-sizes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; }
.move-sizes .chip {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-width: 0; min-height: 36px; padding: 3px; border-color: #425c4c; background: #2b4033;
  font-size: .77rem; line-height: 1.15; text-align: center; overflow-wrap: anywhere;
}
.move-sizes .chip small { color: #bfcebf; font-size: .64rem; }
.move-sizes .other-amount { color: #c4d0c6; border-style: dashed; background: transparent; }
.move-sizes .other-amount small { white-space: normal; }
.move-sizes:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.choosing-size.one-line { width: 355px; }
.one-line .move-sizes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); }
.one-line .move-sizes .chip { padding-inline: 1px; }
@media (max-width: 640px) {
  .fixed-action-bar { grid-template-columns: 3.65rem minmax(0,1fr); gap: 2px 6px; padding: 4px 9px; }
  .fixed-actor small { font-size: .64rem; }
  .fixed-actor strong { font-size: .75rem; }
  #fixed-actions .move-button { min-height: 35px; font-size: .76rem; }
  #fixed-actions .move-sizes { grid-auto-flow: row; grid-template-columns: repeat(3,minmax(0,1fr)); }
  #batch-controls { grid-column: 1 / -1; justify-content: flex-end; }
  .batch-move { min-height: 23px; font-size: .7rem; }
  .arena:has(.seat-moves) { min-height: 340px; }
  .arena:is([data-count="7"],[data-count="8"],[data-count="9"]):has(.seat-moves) { min-height: 400px; }
  .move-button { min-height: 40px; padding-inline: 8px; }
  .choosing-size { width: 226px; }
  .choosing-size.one-line { width: 303px; }
}
@media (max-width: 640px) and (max-height: 760px) {
  .table-workstation .arena:has(.seat-moves) { min-height: 296px; }
  .table-workstation .arena:is([data-count="7"],[data-count="8"],[data-count="9"]):has(.seat-moves) { min-height: 340px; }
  .table-workstation .arena:has(.seat-moves):has(#board .card:not(.empty)) { min-height: 326px; }
  .table-workstation .arena:is([data-count="7"],[data-count="8"],[data-count="9"]):has(.seat-moves):has(#board .card:not(.empty)) { min-height: 366px; }
}
.amount-pad {
  max-width: 24rem;
  margin-inline: auto;
}
.pad-readout {
  padding: .65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #101817;
  color: var(--muted);
}
.pad-readout > span {
  display: block;
  font-size: .85rem;
}
.pad-readout output {
  color: var(--text);
  font: 700 clamp(1.6rem, 6vw, 2rem)/1.2 var(--mono);
  overflow-wrap: anywhere;
}
.pad-range {
  margin: .4rem 0 .65rem;
  color: var(--muted);
  font-size: .85rem;
}
.pad-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .4rem;
}
.pad-key {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--elevated);
  color: var(--text);
  font: 600 1.1rem/1.2 var(--mono);
}
.pad-key:hover, .pad-key:focus-visible {
  background: #34443c;
}
.pad-key:active {
  background: #435741;
}
.pad-tools {
  display: flex;
  gap: .4rem;
  margin-top: .55rem;
  flex-wrap: wrap;
}
.pad-tools button {
  min-height: 40px;
  flex: 1 1 auto;
}
@media (max-height: 570px) {
  .pad-key { min-height: 35px; }
  .pad-readout { padding-block: .25rem; }
}
