.pa-roster {
  display: grid;
  gap: 4px;
}
.pa-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.pa-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 38px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 7px;
}
.pa-compact .pa-row {
  display: grid;
  gap: 0;
}
.pa-row.pa-highlight, .pa-row.pa-selected {
  background: #335a45;
  border-color: #a7c68c;
}
.pa-piece-trigger {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  color: #e1ead9;
  background: transparent;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.35;
}
.pa-piece-trigger::before, .pa-pop-header h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--piece-color, #aaca86);
  box-shadow: inset 0 1px 1px #ffffff66, 0 1px 2px #09201680;
}
.pa-piece-trigger:disabled {
  pointer-events: none;
  opacity: 1;
}
.pa-location {
  font-size: 10px;
  line-height: 1.4;
  color: #aec3ac;
}
.pa-compact .pa-location {
  padding-left: 14px;
}
.piece-popover {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  box-sizing: border-box;
  width: 188px;
  max-width: calc(100vw - 16px);
  max-height: min(300px, 40vh);
  max-height: min(300px, 40dvh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px;
  border: 1px solid #90a87f;
  border-radius: 10px;
  background: #183a2e;
  color: #edf1de;
  box-shadow: 0 6px 23px #071c16aa;
}
.pa-pop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.pa-pop-header h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}
.pa-pop-close {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #284c3e;
  font-size: 20px;
  line-height: 1;
}
.pa-pop-options {
  display: grid;
  gap: 5px;
}
.pa-pop-options .move-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  text-align: left;
  font-size: 12px;
}
.pa-dice-sum {
  color: #b8c9b4;
  font-size: 10px;
}
.pa-pop-note {
  margin: 5px 0 2px;
  color: #d1decb;
  font-size: 12px;
  line-height: 1.55;
}
