.turn-table-toolbar {
  align-items: center;
}

.turn-config-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 28, 0.45);
}

.turn-select {
  width: 54px;
}

.turn-count-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 14, 28, 0.9);
  color: #eef6ff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.turn-count-action:hover:not(:disabled),
.turn-count-action:focus-visible {
  border-color: rgba(126, 224, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(126, 224, 255, 0.12);
}

.turn-count-action:disabled {
  color: rgba(238, 246, 255, 0.32);
  cursor: not-allowed;
  opacity: 0.55;
}

.turn-damage-panel {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  padding: 5px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 15, 28, 0.45);
}

.turn-beast-buffs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.turn-skill-head {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.turn-slot-frame {
  flex: 0 0 auto;
}

.turn-slot-name {
  width: 86px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.turn-skill-controls {
  align-self: flex-start;
}

.turn-beast-buff-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
}

.turn-beast-buff-group strong,
.turn-beast-buff-field span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.turn-beast-buff-field {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.turn-beast-buff-input {
  width: 48px;
  height: 22px;
  padding: 0 5px;
  font-size: 10px;
  border-radius: 7px;
}

.turn-beast-buff-target {
  width: 74px;
  height: 22px;
  padding: 0 18px 0 5px;
  font-size: 10px;
  border-radius: 7px;
}

.turn-beast-buff-presets {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.turn-beast-buff-preset {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 6px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #d6e6fb;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.turn-beast-buff-preset.active {
  border-color: rgba(126, 224, 255, 0.3);
  background: rgba(126, 224, 255, 0.18);
  color: #f3fdff;
}

.turn-beast-buff-preset input {
  display: none;
}

.damage-tooltip-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #eef6ff;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .turn-config-control,
  .turn-beast-buffs {
    flex-wrap: wrap;
  }

  .turn-damage-panel {
    width: 100%;
  }
}
